mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-18 22:14:26 +00:00
No longer using Files.isRegularFile(), fixing "add existing vault located on OneDrive's FoD"
This commit is contained in:
@@ -315,7 +315,7 @@ public class MainController implements ViewController {
|
||||
final Path vaultPath;
|
||||
if (path != null && Files.isDirectory(path)) {
|
||||
vaultPath = path;
|
||||
} else if (path != null && Files.isRegularFile(path)) {
|
||||
} else if (path != null && Files.isReadable(path)) {
|
||||
vaultPath = path.getParent();
|
||||
} else {
|
||||
LOG.warn("Ignoring attempt to add vault with invalid path: {}", path);
|
||||
|
||||
Reference in New Issue
Block a user