From 64de3e104bb5a3933510976482d59d5b031db032 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Thu, 1 Feb 2024 17:56:05 +0200 Subject: [PATCH] Fix Find() when / is used as input Fix #199 --- platformifier/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformifier/fs.go b/platformifier/fs.go index 9c977a2..06972d2 100644 --- a/platformifier/fs.go +++ b/platformifier/fs.go @@ -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)