lib/fs: Expose fs option on interface (fixes #7385, ref #7381) (#7389)

This commit is contained in:
Simon Frei
2021-03-11 15:23:56 +01:00
committed by GitHub
parent cdef503db6
commit 3938b61c3f
9 changed files with 74 additions and 36 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ func testWalkTraverseDirJunct(t *testing.T, fsType FilesystemType, uri string) {
t.Skip("Directory junctions are available and tested on windows only")
}
fs := NewFilesystem(fsType, uri, WithJunctionsAsDirs())
fs := NewFilesystem(fsType, uri, new(OptionJunctionsAsDirs))
if err := fs.MkdirAll("target/foo", 0); err != nil {
t.Fatal(err)
@@ -90,7 +90,7 @@ func testWalkInfiniteRecursion(t *testing.T, fsType FilesystemType, uri string)
t.Skip("Infinite recursion detection is tested on windows only")
}
fs := NewFilesystem(fsType, uri, WithJunctionsAsDirs())
fs := NewFilesystem(fsType, uri, new(OptionJunctionsAsDirs))
if err := fs.MkdirAll("target/foo", 0); err != nil {
t.Fatal(err)