forked from golang/go
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
path/filepath: Glob fails if it has a wildcard and ends with /
The Glob tries to get the parent directory of the given directory. When a trailing slash is present, filepath.Split returns the path as it is as it can not split it further. This fix cleans the path first by remoivng any trailing slash before getting the parent directory. Fixes golang#33617
- Loading branch information
1 parent
8cf5293
commit ed9e127
Showing
2 changed files
with
21 additions
and
9 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