Class FileSupport

java.lang.Object
de.galan.commons.io.file.FileSupport

public class FileSupport extends Object
Supportive file operations
  • Constructor Details

    • FileSupport

      public FileSupport()
  • Method Details

    • deleteFile

      public static void deleteFile(File file) throws IOException
      Deletes a File. If it is a directory it will be performed recursivly.
      Throws:
      IOException
    • deleteFileQuiet

      public static boolean deleteFileQuiet(File file)
      Deletes a File. If it is a directory it will be performed recursivly. Exceptions will be swallowed, only a logmessage will be printed.
      Returns:
      true if successfull
    • touch

      public static void touch(File file) throws IOException
      Throws:
      IOException
    • touch

      public static void touch(Path path) throws IOException
      Throws:
      IOException