Class FileUtil

java.lang.Object
com.ranull.graves.util.FileUtil

public final class FileUtil extends Object
Utility class for file operations.
  • Constructor Details

    • FileUtil

      public FileUtil()
  • Method Details

    • moveFile

      public static void moveFile(File file, String name)
      Moves a file to a new location with a new name.
      Parameters:
      file - The file to be moved.
      name - The new name for the file.
    • copyFile

      @Deprecated public static void copyFile(File file, String name)
      Deprecated.

      This method is deprecated and will be removed in a future version. Use moveFile(File, String) instead.

      Copies a file to a new location with a new name.
      Parameters:
      file - The file to be copied.
      name - The new name for the copied.