mirror of
https://github.com/restic/restic.git
synced 2026-06-20 07:34:18 +00:00
fs: unexport Local and expose via NewLocal
This commit is contained in:
@@ -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