Skip to content

Commit 341466b

Browse files
committed
Without the backslash, "C:Dir" does not take the child folder under the drive root but takes "whatever directory is the current directory for drive C: at the moment" and concats "Dir" to that, which would yield unexpected test results if you're using drive C: and got some currentdir on it different from the root.
1 parent 9d79a34 commit 341466b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ public void BasicDirectories()
11271127
TestDirectory(wnt, "d", "d");
11281128
TestDirectory(wnt, "absolute/file2", @"absolute\file2");
11291129

1130-
string BaseDir1 = Path.Combine("C:", "Dir");
1130+
string BaseDir1 = Path.Combine("C:\\", "Dir");
11311131
wnt.BaseDirectory = BaseDir1;
11321132

11331133
TestDirectory(wnt, "talofa", Path.Combine(BaseDir1, "talofa"));

0 commit comments

Comments
 (0)