go-git / go-billy

The missing interface filesystem abstraction for Go
https://pkg.go.dev/github.com/go-git/go-billy/v5
Apache License 2.0
324 stars 43 forks source link

fix: memfs Rename() issue #71

Open sanderwang opened 4 months ago

sanderwang commented 4 months ago

Fix the following issues:

Since the createParent method is called at the end of the move method, the directory structure is automatically updated when the files are renamed. Assigning the old value of s.children to the new value does nothing to help except create the issues described above.