mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-20 19:51:27 +00:00
add tilter to display only folders with write permissions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user