Package de.galan.commons.io.file
Class FileSupport
- java.lang.Object
-
- de.galan.commons.io.file.FileSupport
-
public class FileSupport extends Object
Supportive file operations
-
-
Constructor Summary
Constructors Constructor Description FileSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteFile(File file)Deletes a File.static booleandeleteFileQuiet(File file)Deletes a File.static voidtouch(File file)static voidtouch(Path path)
-
-
-
Method Detail
-
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
-
-