From 06b3343a6d81c99e7c8b024eda2fbb8bda23aa6c Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Tue, 13 Oct 2020 18:30:00 +0200 Subject: [PATCH] Partly Revert "Finished feature: Fuse on Win" Revert changes to TemporaryMountPointChooser introduced by 598bec305038d87803e5a35d3e748d88f1880ddc --- .../mountpoint/TemporaryMountPointChooser.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java index f9a01e028..60991b97e 100644 --- a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java +++ b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java @@ -69,20 +69,13 @@ public class TemporaryMountPointChooser implements MountPointChooser { try { switch (caller.getMountPointRequirement()) { case PARENT_NO_MOUNT_POINT -> { - //Create everything up to the parent (but not the actual mountpoint) - Path parent = mountPoint.getParent(); - Files.createDirectories(parent); - - //Get the name of the parent directory (#getFileName()) - //or just use the parent if the name is null (that's the case if parent is the root) - Path parentName = parent.getFileName() != null ? parent.getFileName() : parent; - LOG.debug("Successfully created/checked parent folder (\"{}\") for mount point: {}", parentName, mountPoint); + Files.createDirectories(mountPoint.getParent()); + LOG.debug("Successfully created folder for mount point: {}", mountPoint); return false; } case EMPTY_MOUNT_POINT -> { - //Create everything up to the mountpoint (including the actual mountpoint) Files.createDirectories(mountPoint); - LOG.debug("Successfully created/checked mount point: {}", mountPoint); + LOG.debug("Successfully created mount point: {}", mountPoint); return true; } case NONE -> {