@ParametersAreNonnullByDefault public abstract class UnixLikeFileSystemDriverBase extends FileSystemDriverBase
FileSystemDriver for Unix-like
filesystems
In addition to the defaults defined in FileSystemDriverBase, this
abstract class defaults to a UnixPathElementsFactory for building
paths and a default PathMatcherProvider to provide PathMatcher instances -- therefore bringing support for both "glob"
and "regex" path matchers. It also considers that all paths whose
last name elements begin with a dot are hidden (overridable).
pathElementsFactory| Modifier | Constructor and Description |
|---|---|
protected |
UnixLikeFileSystemDriverBase(URI uri,
FileStore fileStore) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHidden(Path path)
Tell whether a path is to be considered hidden by this filesystem
|
getFileStore, getPathElementsFactory, getPathMatcherProvider, getRoot, getSupportedFileAttributeViews, getUri, getUserPrincipalLookupService, isSameFile, newByteChannel, newWatchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAccess, copy, createDirectory, delete, getFileAttributeView, move, newDirectoryStream, newInputStream, newOutputStream, readAttributes, readAttributes, setAttributepublic boolean isHidden(Path path) throws IOException
Typically, on Unix systems, it means the last name element of the path
starts with a dot (".").
path - the path to testIOException - filesystem level error, or a plain I/O errorFileSystemProvider.isHidden(Path)