Class SaferIOOperation

java.lang.Object
de.uplanet.util.transaction.SaferIOOperation

public final class SaferIOOperation extends Object
  • Field Details

  • Method Details

    • 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)
    • copyFile

      public static void copyFile(File p_fileDst, File p_fileSrc) throws IOException
      Throws:
      IOException
    • copyDir

      public static void copyDir(File p_fileDst, File p_fileSrc) throws IOException
      Throws:
      IOException
    • delete

      public static boolean delete(File p_fileToDel)
    • deleteDir

      public static boolean deleteDir(Path p_path)