Package | Description |
---|---|
org.apache.commons.io.file |
This package provides extensions in the realm of java.nio.file.
|
Modifier and Type | Class and Description |
---|---|
private static class |
Counters.AbstractPathCounters
Counts files, directories, and sizes, as a visit proceeds.
|
private static class |
Counters.BigIntegerPathCounters
Counts files, directories, and sizes, as a visit proceeds, using BigInteger numbers.
|
private static class |
Counters.LongPathCounters
Counts files, directories, and sizes, as a visit proceeds, using long numbers.
|
private static class |
Counters.NoopPathCounters
Counts nothing.
|
Modifier and Type | Field and Description |
---|---|
private Counters.PathCounters |
CountingPathVisitor.pathCounters |
Modifier and Type | Method and Description |
---|---|
static Counters.PathCounters |
Counters.bigIntegerPathCounters()
Returns a new BigInteger PathCounters.
|
static Counters.PathCounters |
PathUtils.cleanDirectory(java.nio.file.Path directory)
Cleans a directory including sub-directories without deleting directories.
|
static Counters.PathCounters |
PathUtils.cleanDirectory(java.nio.file.Path directory,
DeleteOption... deleteOptions)
Cleans a directory including sub-directories without deleting directories.
|
static Counters.PathCounters |
PathUtils.copyDirectory(java.nio.file.Path sourceDirectory,
java.nio.file.Path targetDirectory,
java.nio.file.CopyOption... copyOptions)
Copies a directory to another directory.
|
static Counters.PathCounters |
PathUtils.countDirectory(java.nio.file.Path directory)
Counts aspects of a directory including sub-directories.
|
static Counters.PathCounters |
PathUtils.delete(java.nio.file.Path path)
Deletes a file or directory.
|
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)
Deletes a directory including sub-directories.
|
static Counters.PathCounters |
PathUtils.deleteDirectory(java.nio.file.Path directory,
DeleteOption... deleteOptions)
Deletes a directory including sub-directories.
|
static Counters.PathCounters |
PathUtils.deleteDirectory(java.nio.file.Path directory,
java.nio.file.LinkOption[] linkOptions,
DeleteOption... deleteOptions)
Deletes a directory including sub-directories.
|
static Counters.PathCounters |
PathUtils.deleteFile(java.nio.file.Path file)
Deletes the given file.
|
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.
|
Counters.PathCounters |
CountingPathVisitor.getPathCounters()
Gets the visitation counts.
|
static Counters.PathCounters |
Counters.longPathCounters()
Returns a new BigInteger PathCounters.
|
static Counters.PathCounters |
Counters.noopPathCounters()
Returns the NOOP PathCounters.
|
Constructor and Description |
---|
AccumulatorPathVisitor(Counters.PathCounters pathCounter)
Constructs a new instance that counts file system elements.
|
AccumulatorPathVisitor(Counters.PathCounters pathCounter,
PathFilter fileFilter,
PathFilter dirFilter)
Constructs a new instance.
|
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.
|
CleaningPathVisitor(Counters.PathCounters pathCounter,
java.lang.String... skip)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
CopyDirectoryVisitor(Counters.PathCounters pathCounter,
PathFilter fileFilter,
PathFilter dirFilter,
java.nio.file.Path sourceDirectory,
java.nio.file.Path targetDirectory,
java.nio.file.CopyOption... copyOptions)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
CopyDirectoryVisitor(Counters.PathCounters pathCounter,
java.nio.file.Path sourceDirectory,
java.nio.file.Path targetDirectory,
java.nio.file.CopyOption... copyOptions)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
CountingPathVisitor(Counters.PathCounters pathCounter)
Constructs a new instance.
|
CountingPathVisitor(Counters.PathCounters pathCounter,
PathFilter fileFilter,
PathFilter dirFilter)
Constructs a new instance.
|
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.
|
DeletingPathVisitor(Counters.PathCounters pathCounter,
java.lang.String... skip)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|