类 FileUtils
java.lang.Object
com.baomidou.mybatisplus.generator.util.FileUtils
- 从以下版本开始:
- 3.5.0
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidforceMkdir(File directory) Makes a directory, including any necessary but nonexistent parent directories.static voidforceMkdirParent(File file) Makes any necessary but nonexistent parent directories for a given File.
-
构造器详细资料
-
FileUtils
public FileUtils()
-
-
方法详细资料
-
forceMkdir
Makes a directory, including any necessary but nonexistent parent directories. If a file already exists with specified name but it is not a directory then an IOException is thrown. If the directory cannot be created (or does not already exist) then an IOException is thrown.- 参数:
directory- directory to create, must not benull- 抛出:
NullPointerException- if the directory isnullIOException- if the directory cannot be created or the file already exists but is not a directory
-
forceMkdirParent
Makes any necessary but nonexistent parent directories for a given File. If the parent directory cannot be created then an IOException is thrown.- 参数:
file- file with parent to create, must not benull- 抛出:
NullPointerException- if the file isnullIOException- if the parent directory cannot be created- 从以下版本开始:
- 2.5
-