类 FileUtils

java.lang.Object
com.baomidou.mybatisplus.generator.util.FileUtils

public class FileUtils extends Object
从以下版本开始:
3.5.0
另请参阅:
  • 引用无效
    org.apache.commons.io.FileUtils
  • 构造器详细资料

    • FileUtils

      public FileUtils()
  • 方法详细资料

    • forceMkdir

      public static void forceMkdir(File directory) throws IOException
      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 be null
      抛出:
      NullPointerException - if the directory is null
      IOException - if the directory cannot be created or the file already exists but is not a directory
    • forceMkdirParent

      public static void forceMkdirParent(File file) throws IOException
      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 be null
      抛出:
      NullPointerException - if the file is null
      IOException - if the parent directory cannot be created
      从以下版本开始:
      2.5