-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storage NIO: Try harder to make believable directories (#3775)
* Try harder to make believable directories Previous implementation of fake folders just looked for a trailing '/'. Now we also list the files with this prefix and use this to determine whether the input is a folder. This will detect 'dir' in addition to just 'dir/' before. This version will still say 'yes' to anything that ends in a slash, even if they don't exist, maintaining the previous behavior. * Clarify documentation and add test case * add braces for linter * apply reviewer suggestion * fix listing folders that don't end in / * fix comment * Perf, tests, comments Improved performance by moving the pseudodir code to only run on file not found, leaving the common-case path to run faster. Added tests for pseudodirs, and one in LocalStorage too. Improved comments following reviewer suggestions. * stylistic change * Optimize Remove check for path without '/' in places where it's not required. * cosmetic change for linter
- Loading branch information
1 parent
1a3549d
commit 636588c
Showing
6 changed files
with
236 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.