Package org.smallmind.nutsnbolts.io
Class FileUtility
- java.lang.Object
-
- org.smallmind.nutsnbolts.io.FileUtility
-
public class FileUtility extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CopyTreeConfigurationBuildercopyBuilder(Path source, Path destination)static voidcopyTree(Path source, Path destination, boolean includeSourceDirectory, PathFilter... pathFilters)static DeleteTreeConfigurationBuilderdeleteBuilder(Path target)static voiddeleteTree(Path target, boolean includeTargetDirectory, boolean throwErrorOnDirectoryNotEmpty, PathFilter... pathFilters)static booleanisDirectoryEmpty(Path directory)
-
-
-
Method Detail
-
copyBuilder
public static CopyTreeConfigurationBuilder copyBuilder(Path source, Path destination)
-
deleteBuilder
public static DeleteTreeConfigurationBuilder deleteBuilder(Path target)
-
isDirectoryEmpty
public static boolean isDirectoryEmpty(Path directory) throws IOException
- Throws:
IOException
-
copyTree
public static void copyTree(Path source, Path destination, boolean includeSourceDirectory, PathFilter... pathFilters) throws IOException
- Throws:
IOException
-
deleteTree
public static void deleteTree(Path target, boolean includeTargetDirectory, boolean throwErrorOnDirectoryNotEmpty, PathFilter... pathFilters) throws IOException
- Throws:
IOException
-
-