mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
@@ -330,7 +330,13 @@ pub const Cli = struct {
|
||||
const do_we_need_to_close = open_file_limit > result.output_files.len * 2;
|
||||
did_write = true;
|
||||
var root_dir = try std.fs.openDirAbsolute(result.outbase, std.fs.Dir.OpenDirOptions{});
|
||||
defer root_dir.close();
|
||||
|
||||
defer {
|
||||
if (do_we_need_to_close) {
|
||||
root_dir.close();
|
||||
}
|
||||
}
|
||||
|
||||
for (result.output_files) |f| {
|
||||
var fp = f.path;
|
||||
if (fp[0] == std.fs.path.sep) {
|
||||
|
||||
Reference in New Issue
Block a user