Uses of Class
com.google.common.jimfs.Directory
-
-
Uses of Directory in com.google.common.jimfs
Fields in com.google.common.jimfs declared as Directory Modifier and Type Field Description private Directory
DirectoryEntry. directory
private Directory
FileSystemView. workingDirectory
Fields in com.google.common.jimfs with type parameters of type Directory Modifier and Type Field Description private com.google.common.base.Supplier<Directory>
FileFactory. directorySupplier
private com.google.common.collect.ImmutableSortedMap<Name,Directory>
FileTree. roots
Map of root names to root directories.Methods in com.google.common.jimfs that return Directory Modifier and Type Method Description (package private) Directory
Directory. copyWithoutContent(int id, java.nio.file.attribute.FileTime creationTime)
Creates a copy of this directory.static Directory
Directory. create(int id, java.nio.file.attribute.FileTime creationTime)
Creates a new normal directory with the given ID and creation time.Directory
FileFactory. createDirectory()
Creates a new directory.Directory
FileSystemView. createDirectory(JimfsPath path, java.nio.file.attribute.FileAttribute<?>... attrs)
Creates a new directory at the given path.static Directory
Directory. createRoot(int id, java.nio.file.attribute.FileTime creationTime, Name name)
Creates a new root directory with the given ID, creation time, and name.Directory
FileFactory. createRootDirectory(Name name)
Creates a new root directory with the given name.Directory
DirectoryEntry. directory()
Returns the directory containing this entry.Directory
FileFactory.DirectorySupplier. get()
(package private) @Nullable Directory
JimfsFileStore. getRoot(Name name)
Returns the root directory with the given name ornull
if no such directory exists.Directory
Directory. parent()
Returns the parent of this directory.private @Nullable Directory
FileTree. toDirectory(@Nullable File file)
Methods in com.google.common.jimfs that return types with arguments of type Directory Modifier and Type Method Description com.google.common.base.Supplier<Directory>
FileFactory. directoryCreator()
Returns a supplier that creates directories.(package private) com.google.common.base.Supplier<Directory>
JimfsFileStore. directoryCreator()
Returns a supplier that creates a new directory.Methods in com.google.common.jimfs with parameters of type Directory Modifier and Type Method Description private void
FileSystemView. checkEmpty(Directory dir, java.nio.file.Path pathForException)
Checks that given directory is empty, throwingDirectoryNotEmptyException
if not.private void
FileSystemView. checkNotAncestor(File source, Directory destParent, FileSystemView destView)
Checks that source is not an ancestor of dest, throwing an exception if it is.Constructors in com.google.common.jimfs with parameters of type Directory Constructor Description DirectoryEntry(Directory directory, Name name, @Nullable File file)
FileSystemView(JimfsFileStore store, Directory workingDirectory, JimfsPath workingDirectoryPath)
Creates a new file system view.Constructor parameters in com.google.common.jimfs with type arguments of type Directory Constructor Description FileTree(java.util.Map<Name,Directory> roots)
Creates a new file tree with the given root directories.
-