fs: unexport Local and expose via NewLocal

This commit is contained in:
Michael Eischer
2026-06-05 16:28:15 +02:00
parent 1acc19dac5
commit e1e7fc8fb2
20 changed files with 72 additions and 67 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ func BenchmarkNodeFromFileInfo(t *testing.B) {
path := tempfile.Name()
rtest.OK(t, tempfile.Close())
fs := Local{}
fs := NewLocal()
f, err := fs.OpenFile(path, O_NOFOLLOW, true)
rtest.OK(t, err)
_, err = f.Stat()
@@ -222,7 +222,7 @@ func TestNodeRestoreAt(t *testing.T) {
rtest.OK(t, NodeRestoreMetadata(&test, nodePath, func(msg string) { rtest.OK(t, fmt.Errorf("Warning triggered for path: %s: %s", nodePath, msg)) },
func(_ string) bool { return true }, ownershipByName))
fs := &Local{}
fs := NewLocal()
meta, err := fs.OpenFile(nodePath, O_NOFOLLOW, true)
rtest.OK(t, err)
n2, err := meta.ToNode(false, t.Logf)