From 38747383ccc40b96ed7f62edc2f15b33347a32d1 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Mon, 20 Apr 2020 17:28:00 +0200 Subject: [PATCH] Relaxed file system capability check. --- .../cryptofs/common/FileSystemCapabilityChecker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/cryptofs/common/FileSystemCapabilityChecker.java b/src/main/java/org/cryptomator/cryptofs/common/FileSystemCapabilityChecker.java index 443bcbcb..e4330397 100644 --- a/src/main/java/org/cryptomator/cryptofs/common/FileSystemCapabilityChecker.java +++ b/src/main/java/org/cryptomator/cryptofs/common/FileSystemCapabilityChecker.java @@ -37,7 +37,7 @@ public enum Capability { LONG_FILENAMES, /** - * File system supports paths with ≥ 400 chars. + * File system supports paths with ≥ 300 chars. * @since @since 1.9.2 */ LONG_PATHS, @@ -104,7 +104,7 @@ public void assertLongFilenameSupport(Path pathToVault) throws MissingCapability public void assertLongFilePathSupport(Path pathToVault) throws MissingCapabilityException { String longFileName = Strings.repeat("a", 96) + ".c9r"; - String longPath = Joiner.on('/').join(longFileName, longFileName, longFileName, longFileName); + String longPath = Joiner.on('/').join(longFileName, longFileName, longFileName); Path checkDir = pathToVault.resolve("c"); Path p = checkDir.resolve(longPath); try {