java.lang.Object
org.cryptomator.cryptofs.Symlinks
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSymbolicLink(CryptoPath cleartextPath, Path target, FileAttribute<?>... attrs) readSymbolicLink(CryptoPath cleartextPath) resolveRecursively(CryptoPath cleartextPath) Gets the target of a symlink.
-
Method Details
-
createSymbolicLink
public void createSymbolicLink(CryptoPath cleartextPath, Path target, FileAttribute<?>... attrs) throws IOException - Throws:
IOException
-
readSymbolicLink
- Throws:
IOException
-
resolveRecursively
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
cleartextPathif it wasn't a symlink in the first place. - Throws:
IOException
-