Package | Description |
---|---|
org.apache.commons.io.file |
Provides extensions in the realm of
java.nio.file . |
Modifier and Type | Class and Description |
---|---|
class |
StandardDeleteOption
Defines the standard delete options.
|
Modifier and Type | Field and Description |
---|---|
static DeleteOption[] |
PathUtils.EMPTY_DELETE_OPTION_ARRAY
Empty
DeleteOption array. |
Modifier and Type | Method and Description |
---|---|
static Counters.PathCounters |
PathUtils.cleanDirectory(java.nio.file.Path directory,
DeleteOption... deleteOptions)
Cleans a directory including subdirectories without deleting directories.
|
static Counters.PathCounters |
PathUtils.delete(java.nio.file.Path path,
DeleteOption... deleteOptions)
Deletes a file or directory.
|
static Counters.PathCounters |
PathUtils.delete(java.nio.file.Path path,
java.nio.file.LinkOption[] linkOptions,
DeleteOption... deleteOptions)
Deletes a file or directory.
|
static Counters.PathCounters |
PathUtils.deleteDirectory(java.nio.file.Path directory,
DeleteOption... deleteOptions)
Deletes a directory including subdirectories.
|
static Counters.PathCounters |
PathUtils.deleteDirectory(java.nio.file.Path directory,
java.nio.file.LinkOption[] linkOptions,
DeleteOption... deleteOptions)
Deletes a directory including subdirectories.
|
static Counters.PathCounters |
PathUtils.deleteFile(java.nio.file.Path file,
DeleteOption... deleteOptions)
Deletes the given file.
|
static Counters.PathCounters |
PathUtils.deleteFile(java.nio.file.Path file,
java.nio.file.LinkOption[] linkOptions,
DeleteOption... deleteOptions)
Deletes the given file.
|
private static boolean |
PathUtils.overrideReadOnly(DeleteOption... deleteOptions)
Returns true if the given options contain
StandardDeleteOption.OVERRIDE_READ_ONLY . |
static boolean |
StandardDeleteOption.overrideReadOnly(DeleteOption[] options)
Returns true if the given options contain
StandardDeleteOption.OVERRIDE_READ_ONLY . |
Constructor and Description |
---|
CleaningPathVisitor(Counters.PathCounters pathCounter,
DeleteOption[] deleteOption,
java.lang.String... skip)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
DeletingPathVisitor(Counters.PathCounters pathCounter,
DeleteOption[] deleteOption,
java.lang.String... skip)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
DeletingPathVisitor(Counters.PathCounters pathCounter,
java.nio.file.LinkOption[] linkOptions,
DeleteOption[] deleteOption,
java.lang.String... skip)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|