fix swapped logic for Windows

Remove `std.fs.deleteTree`. Callers instead should use
`std.fs.cwd().deleteTree`.

Add `std.fs.deleteTreeAbsolute` for when the caller has an absolute
path.
This commit is contained in:
Andrew Kelley
2020-03-18 16:09:06 -04:00
parent 27affde592
commit 46ffc798b6
8 changed files with 34 additions and 37 deletions

View File

@@ -36,7 +36,7 @@ pub fn main() !void {
testMissingOutputPath,
};
for (test_fns) |testFn| {
try fs.deleteTree(dir_path);
try fs.cwd().deleteTree(dir_path);
try fs.cwd().makeDir(dir_path);
try testFn(zig_exe, dir_path);
}