Skip to content

Commit

Permalink
Relaxed file system capability check.
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Apr 20, 2020
1 parent 2a2f1a9 commit 3874738
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3874738

Please sign in to comment.