lib/config, lib/fs: Make junction behaviour configurable (ref #6606) (#6907)

This commit is contained in:
Simon Frei
2020-08-19 19:58:51 +02:00
committed by GitHub
parent ce4d149bf5
commit fc2c46e82f
11 changed files with 49 additions and 17 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)
fs := NewFilesystem(fsType, uri, WithJunctionsAsDirs())
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)
fs := NewFilesystem(fsType, uri, WithJunctionsAsDirs())
if err := fs.MkdirAll("target/foo", 0); err != nil {
t.Fatal(err)