mirror of
https://github.com/restic/restic.git
synced 2026-11-06 23:39:21 +00:00
fs: unexport Local and expose via NewLocal
This commit is contained in:
1 parent
1acc19dac5
commit
e1e7fc8fb2
20 files changed
+72
-67
No files matched your search
@@ -390,7 +390,7 @@ func restoreAndGetNode(t *testing.T, tempDir string, testNode *data.Node, warnin
|
||||
}, func(_ string) bool { return true }, false)
|
||||
test.OK(t, errors.Wrapf(err, "Failed to restore metadata for: %s", testPath))
|
||||
|
||||
fs := &Local{}
|
||||
fs := NewLocal()
|
||||
meta, err := fs.OpenFile(testPath, O_NOFOLLOW, true)
|
||||
test.OK(t, err)
|
||||
nodeFromFileInfo, err := meta.ToNode(false, t.Logf)
|
||||
|
||||
Reference in new issue
Block a user