Class Symlinks

java.lang.Object
org.cryptomator.cryptofs.Symlinks

@CryptoFileSystemScoped public class Symlinks extends Object
  • Method Details

    • createSymbolicLink

      public void createSymbolicLink(CryptoPath cleartextPath, Path target, FileAttribute<?>... attrs) throws IOException
      Throws:
      IOException
    • readSymbolicLink

      public CryptoPath readSymbolicLink(CryptoPath cleartextPath) throws IOException
      Throws:
      IOException
    • resolveRecursively

      public CryptoPath resolveRecursively(CryptoPath cleartextPath) throws IOException
      Gets the target of a symlink. Recursive, if the target is a symlink itself.
      Parameters:
      cleartextPath - A cleartext path. Might be a symlink, otherwise this method is no-op.
      Returns:
      The resolved cleartext path. Might be the same as cleartextPath if it wasn't a symlink in the first place.
      Throws:
      IOException