Class SaferIOOperation


  • public final class SaferIOOperation
    extends Object
    • Constructor Detail

      • SaferIOOperation

        public SaferIOOperation()
    • Method Detail

      • renameTo

        public static boolean renameTo​(File p_fileSrc,
                                       File p_fileDst)
        Parameters:
        p_fileSrc - The source file or directory to move
        p_fileDst - The destination file or directory.
        Returns:
        Returns true if rename success otherwise false
      • renameTo

        public static boolean renameTo​(Path p_fileSrc,
                                       Path p_fileDst)
        Parameters:
        p_fileSrc - The source file or directory to move
        p_fileDst - The destination file or directory.
        Returns:
        Returns true if rename success otherwise false
      • mkdir

        public static boolean mkdir​(File p_dir)
      • mkdirs

        public static boolean mkdirs​(File p_dir)
      • delete

        public static boolean delete​(File p_fileToDel)
      • deleteDir

        public static boolean deleteDir​(Path p_dir)