Package io.pravega.common.io
Class FileHelpers
- java.lang.Object
-
- io.pravega.common.io.FileHelpers
-
public class FileHelpers extends java.lang.ObjectExtension methods to the java.io.File class.
-
-
Constructor Summary
Constructors Constructor Description FileHelpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandeleteFileOrDirectory(java.io.File file)Deletes the given file or directory.
-
-
-
Method Detail
-
deleteFileOrDirectory
public static boolean deleteFileOrDirectory(java.io.File file)
Deletes the given file or directory. If a directory, recursively deletes all sub-directories and files.- Parameters:
file- The target to delete.- Returns:
- True if the target was deleted, false otherwise.
-
-