@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 PathMatcherFactory to provide PathMatcher instances -- therefore bringing support for both "glob"
and "regex" path matchers. It also considers that all paths whose
last name element begin with a dot are hidden (overridable).
optionsFactory| Modifier | Constructor and Description |
|---|---|
protected |
UnixLikeFileSystemDriverBase(FileStore fileStore,
FileSystemFactoryProvider factoryProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHidden(Path path)
Tell whether a path is to be considered hidden by this filesystem
|
getFileAttributeView, getFileStore, getUserPrincipalLookupService, isSameFile, newByteChannel, newWatchService, readAttributes, readAttributes, setAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAccess, copy, createDirectory, delete, getPathMetadata, move, newDirectoryStream, newInputStream, newOutputStreamprotected UnixLikeFileSystemDriverBase(FileStore fileStore, FileSystemFactoryProvider factoryProvider)
public boolean isHidden(Path path) throws IOException
FileSystemDriverTypically, 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)