Detect directories even when not ending with "/" #3774
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
status: in progress
There is an open PR
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The current implementation of PseudoDirectories has Files.isDirectory(path) return true only if path ends with a slash.
Users would be less surprised if instead of this behavior, we tried harder to identify things that look like directories.
So for example if
foo/bar.txt
exists, the following paths should be treated as directories:foo/
foo
The text was updated successfully, but these errors were encountered: