Package io.roastedroot.zerofs
Class SymbolicLink
java.lang.Object
io.roastedroot.zerofs.File
io.roastedroot.zerofs.SymbolicLink
A symbolic link file, containing a path.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSymbolicLink(int id, FileTime creationTime, ZeroFsPath target) -
Method Summary
Modifier and TypeMethodDescription(package private) FilecopyWithoutContent(int id, FileTime creationTime) Creates a new file of the same type as this file with the given ID and creation time.static SymbolicLinkcreate(int id, FileTime creationTime, ZeroFsPath target) Creates a new symbolic link with the given ID and target.(package private) ZeroFsPathtarget()Returns the target path of this symbolic link.Methods inherited from class io.roastedroot.zerofs.File
closed, contentLock, copyAttributes, copyBasicAttributes, copyContentTo, decrementLinkCount, deleteAttribute, deleted, getAttribute, getAttributeKeys, getAttributeNames, getCreationTime, getLastAccessTime, getLastModifiedTime, id, incrementLinkCount, isDirectory, isRegularFile, isRootDirectory, isSymbolicLink, linked, links, opened, setAttribute, setCreationTime, setLastAccessTime, setLastModifiedTime, size, toString, unlinked
-
Field Details
-
target
-
-
Constructor Details
-
SymbolicLink
-
-
Method Details
-
create
Creates a new symbolic link with the given ID and target. -
target
ZeroFsPath target()Returns the target path of this symbolic link. -
copyWithoutContent
Description copied from class:FileCreates a new file of the same type as this file with the given ID and creation time. Does not copy the content of this file unless the cost of copying the content is minimal. This is because this method is called with a hold on the file system's lock.- Specified by:
copyWithoutContentin classFile
-