Class FileUtils


  • public final class FileUtils
    extends Object
    • Method Detail

      • verifyDir

        @NonNull
        public static File verifyDir​(@NonNull
                                     String dirPath)
      • verifyDir

        @NonNull
        public static File verifyDir​(@NonNull
                                     File dir)
      • eraseFileOrDir

        public static boolean eraseFileOrDir​(@NonNull
                                             String fileOrDirectory)
      • eraseFileOrDir

        public static boolean eraseFileOrDir​(@NonNull
                                             File fileOrDirectory)
      • deleteContents

        public static boolean deleteContents​(String fileOrDirectory)
      • deleteContents

        public static boolean deleteContents​(File fileOrDirectory)
      • setPermissionRecursive

        public static boolean setPermissionRecursive​(@NonNull
                                                     File fileOrDirectory,
                                                     boolean readable,
                                                     boolean writable)