소스 검색

Changed DokanyVolumes and FuseVolumes to use mountnames

Changed DokanyVolumes and FuseVolumes to use mountnames for automatic, folder-based mounting instead of ids.
JaniruTEC 4 년 전
부모
커밋
bbf9379f56
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java

+ 1 - 1
main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java

@@ -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)) {