mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-10-01 12:15:32 +00:00
fixes #141
This commit is contained in:
+6
@@ -8,6 +8,8 @@
|
||||
*******************************************************************************/
|
||||
package org.cryptomator.filesystem.crypto;
|
||||
|
||||
import static org.cryptomator.filesystem.crypto.Constants.MASTERKEY_FILENAME;
|
||||
|
||||
import java.io.UncheckedIOException;
|
||||
|
||||
import javax.inject.Inject;
|
||||
@@ -31,6 +33,10 @@ public class CryptoFileSystemFactory {
|
||||
this.blockAlignedFileSystemFactory = blockAlignedFileSystemFactory;
|
||||
}
|
||||
|
||||
public boolean isValidVaultStructure(Folder vaultLocation) {
|
||||
return vaultLocation.file(MASTERKEY_FILENAME).exists();
|
||||
}
|
||||
|
||||
public void initializeNew(Folder vaultLocation, CharSequence passphrase) {
|
||||
masterkeys.initialize(vaultLocation, passphrase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user