Skip to content

Detect directories even when not ending with "/" #3774

@jean-philippe-martin

Description

@jean-philippe-martin

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

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.status: in progressThere is an open PRtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions