Fixed 267U.pre2

This commit is contained in:
2026-07-26 18:25:37 +09:00
parent 50bfaeafdf
commit 317d00a284
1286 changed files with 80222 additions and 1 deletions
@@ -0,0 +1,25 @@
import * as tmp from "tmp";
export function createTemp() {
return new Promise((res, rej)=>{
tmp.file((e, path, fd, cleanup)=>{
if (e) return rej(e);
res([
path,
cleanup
]);
});
});
}
export function createTempDir() {
return new Promise((res, rej)=>{
tmp.dir({
unsafeCleanup: true
}, (e, path, cleanup)=>{
if (e) return rej(e);
res([
path,
cleanup
]);
});
});
}