Changed DokanyVolumes and FuseVolumes to use mountnames

Changed DokanyVolumes and FuseVolumes to use mountnames for automatic, folder-based mounting instead of ids.
This commit is contained in:
JaniruTEC
2020-08-17 22:02:01 +02:00
parent 6aa14fcfb1
commit bbf9379f56

View File

@@ -39,7 +39,7 @@ public class TemporaryMountPointChooser implements MountPointChooser {
public Optional<Path> chooseMountPoint() {
//Shouldn't throw, but let's keep #orElseThrow in case we made a mistake and the check in #isApplicable failed
Path parent = this.environment.getMountPointsDir().orElseThrow();
String basename = this.vault.getVaultSettings().getId();
String basename = this.vault.getVaultSettings().mountName().get();
for (int i = 0; i < MAX_TMPMOUNTPOINT_CREATION_RETRIES; i++) {
Path mountPoint = parent.resolve(basename + "_" + i);
if (Files.notExists(mountPoint)) {