absolute check
This commit is contained in:
parent
aaab68bb9d
commit
6cf9ae8038
@ -34,6 +34,7 @@ pub fn config(step: *std.build.Step) anyerror!void {
|
|||||||
});
|
});
|
||||||
defer allocator.free(full_path);
|
defer allocator.free(full_path);
|
||||||
|
|
||||||
|
if (!std.fs.path.isAbsolute(full_path)) continue;
|
||||||
// Skip folders named zig
|
// Skip folders named zig
|
||||||
const file = std.fs.openFileAbsolute(full_path, .{}) catch continue;
|
const file = std.fs.openFileAbsolute(full_path, .{}) catch continue;
|
||||||
const stat = file.stat() catch continue;
|
const stat = file.stat() catch continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user