cryptomator / cryptofs

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

Feature/#98 change vault init #99

Closed infeo closed 3 years ago

infeo commented 3 years ago

Closes #98

Implemented Solution

With this PR, the content root of a vault will be exclusivley created during the vault initialization, i.e. in the static CryptoFileSystemProvider.initialize(Path vaultPath) method and never implicitily during CryptoFileSystem(Impl) creation.

Additionally, when creating a new CryptoFileSystem in the CryptoFileSystems class, the existence of the vault content root is checked before the the filesystem is actually constructed and an IOException raised, if the check fails.