java.lang.Object
org.cryptomator.cryptofs.CryptoPathMapper
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidassertNonExisting(CryptoPath cleartextPath) Verifies that no node exists for the given path.getCiphertextDir(CryptoPath cleartextPath) getCiphertextFilePath(Path parentCiphertextDir, String parentDirId, String cleartextName) getCiphertextFilePath(CryptoPath cleartextPath) getCiphertextFileType(CryptoPath cleartextPath) voidinvalidatePathMapping(CryptoPath cleartextPath) voidmovePathMapping(CryptoPath cleartextSrc, CryptoPath cleartextDst) resolveDirectory(Path directoryFile)
-
Method Details
-
assertNonExisting
public void assertNonExisting(CryptoPath cleartextPath) throws FileAlreadyExistsException, IOException Verifies that no node exists for the given path. Otherwise aFileAlreadyExistsExceptionwill be thrown.- Parameters:
cleartextPath- A path- Throws:
FileAlreadyExistsException- If the node existsIOException- If any I/O error occurs while attempting to resolve the ciphertext path
-
getCiphertextFileType
public CiphertextFileType getCiphertextFileType(CryptoPath cleartextPath) throws NoSuchFileException, IOException - Parameters:
cleartextPath- A path- Returns:
- The file type for the given path (if it exists)
- Throws:
NoSuchFileException- If no node exists at the given path for any known typeIOException
-
getCiphertextFilePath
- Throws:
IOException
-
getCiphertextFilePath
public CiphertextFilePath getCiphertextFilePath(Path parentCiphertextDir, String parentDirId, String cleartextName) -
invalidatePathMapping
-
movePathMapping
-
getCiphertextDir
public CryptoPathMapper.CiphertextDirectory getCiphertextDir(CryptoPath cleartextPath) throws IOException - Throws:
IOException
-
resolveDirectory
- Throws:
IOException
-