build: Fix silly bug in directory traversal

master
LemonBoy 2020-03-16 12:03:16 +01:00 committed by Andrew Kelley
parent e15605e1c1
commit c45fe2759f
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 2 additions and 2 deletions

View File

@ -2156,10 +2156,10 @@ pub const LibExeObjStep = struct {
const build_output_dir = mem.trimRight(u8, output_dir_nl, "\r\n"); const build_output_dir = mem.trimRight(u8, output_dir_nl, "\r\n");
if (self.output_dir) |output_dir| { if (self.output_dir) |output_dir| {
var src_dir = try std.fs.cwd().openDirTraverse(build_output_dir); var src_dir = try std.fs.cwd().openDirList(build_output_dir);
defer src_dir.close(); defer src_dir.close();
var dest_dir = try std.fs.cwd().openDirList(output_dir); var dest_dir = try std.fs.cwd().openDirTraverse(output_dir);
defer dest_dir.close(); defer dest_dir.close();
var it = src_dir.iterate(); var it = src_dir.iterate();