cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
93 stars 35 forks source link

Feature: Add function to get (data) ciphertext path from cleartext path #154

Closed infeo closed 1 year ago

infeo commented 1 year ago

This PR adds to the CryptoFilesystem interface the following function: Path getPathToDataCiphertext(Path cleartextPath) throws IOException

The function returns for a given, absolute cleartext path belonging to this cryptofilesystem its ciphertext data counterpart. It does not point to intermediante files like dir.c9r. This means:

If the fs node does not exists or another exception is thrown, it is propageted.