Skip to content

Commit

Permalink
Fix Find() when / is used as input
Browse files Browse the repository at this point in the history
Fix #199
  • Loading branch information
akalipetis committed Feb 1, 2024
1 parent 19e15b3 commit 64de3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformifier/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (f *OSFileSystem) Create(name string) (io.WriteCloser, error) {

// Find searches for the file inside the path recursively and returns all matches
func (f *OSFileSystem) Find(root, name string, firstMatch bool) []string {
if root == "" {
if root == "" || root == "/" {
root = "."
}
found := make([]string, 0)
Expand Down

0 comments on commit 64de3e1

Please sign in to comment.