public class FileUtility extends Object
| Constructor and Description |
|---|
FileUtility() |
| Modifier and Type | Method and Description |
|---|---|
static CopyTreeConfigurationBuilder |
copyBuilder(Path source,
Path destination) |
static void |
copyTree(Path source,
Path destination,
boolean includeSourceDirectory,
PathFilter... pathFilters) |
static DeleteTreeConfigurationBuilder |
deleteBuilder(Path target) |
static void |
deleteTree(Path target,
boolean includeTargetDirectory,
boolean throwErrorOnDirectoryNotEmpty,
PathFilter... pathFilters) |
static boolean |
isDirectoryEmpty(Path directory) |
public static CopyTreeConfigurationBuilder copyBuilder(Path source, Path destination)
public static DeleteTreeConfigurationBuilder deleteBuilder(Path target)
public static boolean isDirectoryEmpty(Path directory) throws IOException
IOExceptionpublic static void copyTree(Path source, Path destination, boolean includeSourceDirectory, PathFilter... pathFilters) throws IOException
IOExceptionpublic static void deleteTree(Path target, boolean includeTargetDirectory, boolean throwErrorOnDirectoryNotEmpty, PathFilter... pathFilters) throws IOException
IOExceptionCopyright © 2019. All rights reserved.