use constants

This commit is contained in:
Jan-Peter Klein
2025-06-16 14:18:54 +02:00
parent 5c1364792e
commit b0d2dcbff3

View File

@@ -180,8 +180,8 @@ public class VaultListManager {
}
private static VaultState.Value determineVaultState(Path pathToVault, VaultSettings vaultSettings) throws IOException {
Path pathToVaultConfig = pathToVault.resolve("vault.cryptomator");
Path pathToMasterkey = pathToVault.resolve("masterkey.cryptomator");
Path pathToVaultConfig = pathToVault.resolve(VAULTCONFIG_FILENAME);
Path pathToMasterkey = pathToVault.resolve(MASTERKEY_FILENAME);
if (!Files.exists(pathToVault)) {
return VaultState.Value.MISSING;