From a03d5af14456572a17f6d94056bf285c2652c288 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Tue, 17 Sep 2024 16:49:31 +0200 Subject: [PATCH] add tilter to display only folders with write permissions --- .../locationpresets/GoogleDriveMacLocationPresetsProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java b/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java index 509f41341..bf7fe3c38 100644 --- a/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java +++ b/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java @@ -69,6 +69,7 @@ public final class GoogleDriveMacLocationPresetsProvider implements LocationPres try (var dirStream = Files.list(ROOT_LOCATION)) { return dirStream.filter(path -> Files.isDirectory(path) && PATTERN.test(path.getFileName().toString())) .flatMap(this::getPresetsFromAccountPath) + .filter(preset -> Files.isWritable(preset.path())) .toList().stream(); } catch (IOException | UncheckedIOException e) { return Stream.empty();