mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-17 20:56:02 +00:00
Fixed ShorteningFileSystem/Folder
* ShorteningFileSystem now exists after instantiation * Creation of ShorteningFolder does no longer fail
This commit is contained in:
+2
-1
@@ -3,10 +3,11 @@ package org.cryptomator.filesystem.shortening;
|
||||
import org.cryptomator.filesystem.FileSystem;
|
||||
import org.cryptomator.filesystem.Folder;
|
||||
|
||||
class ShorteningFileSystem extends ShorteningFolder implements FileSystem {
|
||||
public class ShorteningFileSystem extends ShorteningFolder implements FileSystem {
|
||||
|
||||
public ShorteningFileSystem(Folder root, Folder metadataRoot, int threshold) {
|
||||
super(null, root, "", new FilenameShortener(metadataRoot, threshold));
|
||||
create();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ class ShorteningFolder extends DelegatingFolder<ShorteningFolder, ShorteningFile
|
||||
if (exists()) {
|
||||
return;
|
||||
}
|
||||
parent().get().create();
|
||||
parent().ifPresent(Folder::create);
|
||||
if (shortener.isShortened(shortenedName())) {
|
||||
shortener.saveMapping(name(), shortenedName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user