cryptomator / cryptofs

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

Windows: Vaults on network drives considered write-protected #71

Closed overheadhunter closed 4 years ago

overheadhunter commented 4 years ago

This is a regression caused by #63:

On Windows, Files.isWritable(pathToVault) returns false for directories on network drives.

https://github.com/cryptomator/cryptofs/blob/66ad6fefb3c5229f9d8fe3c1ec93bafaa0ec5562/src/main/java/org/cryptomator/cryptofs/ReadonlyFlag.java#L25-L28

This causes downstream bugs, such as cryptomator/cryptomator#1046.