Class SymbolicLink

java.lang.Object
io.roastedroot.zerofs.File
io.roastedroot.zerofs.SymbolicLink

final class SymbolicLink extends File
A symbolic link file, containing a path.
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static SymbolicLink create(int id, FileTime creationTime, ZeroFsPath target)
      Creates a new symbolic link with the given ID and target.
    • target

      ZeroFsPath target()
      Returns the target path of this symbolic link.
    • copyWithoutContent

      File copyWithoutContent(int id, FileTime creationTime)
      Description copied from class: File
      Creates 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:
      copyWithoutContent in class File