From f6b1d11eea7f8521c9df5e96d5df6be43440d249 Mon Sep 17 00:00:00 2001 From: Sander Wang Date: Sat, 27 Jul 2024 18:52:33 -0600 Subject: [PATCH] fix: memfs Rename() issue --- memfs/storage.go | 1 - 1 file changed, 1 deletion(-) diff --git a/memfs/storage.go b/memfs/storage.go index 16b48ce..b168b4a 100644 --- a/memfs/storage.go +++ b/memfs/storage.go @@ -138,7 +138,6 @@ func (s *storage) Rename(from, to string) error { func (s *storage) move(from, to string) error { s.files[to] = s.files[from] s.files[to].name = filepath.Base(to) - s.children[to] = s.children[from] defer func() { delete(s.children, from)