Class FileProcess

java.lang.Object
edu.jiangxin.apktoolbox.file.core.FileProcess

public class FileProcess extends Object
文件或文件夹的简单处理
Author:
jiangxin, 2018-09-09
  • Constructor Details

    • FileProcess

      public FileProcess()
  • Method Details

    • copyFile

      public static void copyFile(String srcFileString, String desFileString)
      复制文件
      Parameters:
      srcFileString -
      desFileString -
    • copyDirectory

      public static void copyDirectory(String srcDirString, String desDirString)
      复制文件夹
      Parameters:
      srcDirString -
      desDirString -
      Throws:
      IOException
    • moveFile

      public static void moveFile(String srcFileString, String desFileString, boolean isOverride)
      移动文件
      Parameters:
      srcFileString -
      desFileString -
      isOverride -
      Throws:
      IOException
    • deleteDir

      public static boolean deleteDir(String dir)
      递归删除目录
      Parameters:
      dir -
      Returns:
      返回是否删除成功
    • deleteDirs

      public static boolean deleteDirs(String[] dirs)
      删除目录组
      Parameters:
      dirs -
      Returns:
      返回是否删除成功