public class FileUtils
extends java.lang.Object
org.apache.commons.io.FileUtils| 构造器和说明 |
|---|
FileUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
forceMkdir(java.io.File directory)
Makes a directory, including any necessary but nonexistent parent
directories.
|
static void |
forceMkdirParent(java.io.File file)
Makes any necessary but nonexistent parent directories for a given File.
|
public static void forceMkdir(java.io.File directory)
throws java.io.IOException
directory - directory to create, must not be nulljava.lang.NullPointerException - if the directory is nulljava.io.IOException - if the directory cannot be created or the file already exists but is not a directorypublic static void forceMkdirParent(java.io.File file)
throws java.io.IOException
file - file with parent to create, must not be nulljava.lang.NullPointerException - if the file is nulljava.io.IOException - if the parent directory cannot be created