public interface FilesystemPath extends FileStore.Path, FilesystemAccess
FileStore.Path which provides visibility on the local filesystem's underlying path structure.
Use of this interface should be considered a stop-gap measure to provide backward-compatibility with code that requires access to the underlying files.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FilesystemPath.Pruner |
FilesystemAccess.AccessDenied| Modifier and Type | Method and Description |
|---|---|
FilesystemPath.Pruner |
deleteFileAndPrune()
Deletes the file at the given path, and prunes any empty directories.
|
Stream<FilesystemPath> |
getFileDescendents()
Finds all files that are descendents of the current path and returns them as a stream.
|
Optional<FilesystemPath> |
getParent() |
FilesystemPath |
path(String... pathComponents) |
clonePath, copyFile, copyFiles, deleteFile, exists, fileExists, fileReader, fileWriter, getFileSize, getLeafName, getPathName, moveFile, snapshot, tryDeleteFile, tryFileExists, unpackasJavaFile, asJavaPath, getFilesystemPath@CheckReturnValue FilesystemPath.Pruner deleteFileAndPrune() throws IOException
FilesystemPath.PrunerIOExceptionFilesystemPath path(String... pathComponents)
path in interface FileStore.PathFileStore.Path relative to the current path.Stream<FilesystemPath> getFileDescendents() throws IOException
FileStore.PathThe files returned by this method will always be ordered lexicographically by their path name, sorted as if any path components are separated by the "/" character, rather than the platform-specific file separator.
getFileDescendents in interface FileStore.PathIOException - if the descents cannot be determined.Optional<FilesystemPath> getParent()
getParent in interface FileStore.PathFilesystemPathCopyright © 2021–2024 Atlassian. All rights reserved.