As suggested, the (public) enum DirStructure is introduced with a static method to determine how "much" the directory structure resembles a vault.
I think the most important change is that the containsVault(...) method only checks for a vault structure of vault format 8. For a more fine grained result, use the method CryptoFileSystemProvider.checkDirStructureForVault(...).
For useability I would keep the CryptoFileSystemProvider.checkDirStructureForVault(...) method. It just a delegate, but we gather vault structure related functions (initialize, check) at one place.
Closes #103
As suggested, the (public) enum
DirStructure
is introduced with a static method to determine how "much" the directory structure resembles a vault.I think the most important change is that the
containsVault(...)
method only checks for a vault structure of vault format 8. For a more fine grained result, use the methodCryptoFileSystemProvider.checkDirStructureForVault(...)
.