summaryrefslogtreecommitdiff
path: root/lib/memfs/internal/testdata/get_refresh_test.data
AgeCommit message (Collapse)Author
2024-07-22lib/memfs: sanitize the Root directory to fix refreshShulhan
In [MemFS.refresh], if the requested url is "/file1" and [Options.Root] is ".", the path during refresh become "file1" and if passed to [filepath.Dir] it will return ".". This cause the loop on refresh never end because there is no PathNodes equal with ".".
2023-11-14lib/memfs: improve the refresh methodShulhan
Instead of refreshing from the Root, find the directory that closes to the requested path. While at it, simplify the returned error.