With this PR, the content root of a vault will be exclusivley created during the vault initialization, i.e. in the staticCryptoFileSystemProvider.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.
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.