Updated exists to async

This commit is contained in:
Elio Struyf
2022-10-06 21:49:53 +02:00
parent fad5ad7243
commit a072957793
15 changed files with 55 additions and 55 deletions
+1
View File
@@ -3,5 +3,6 @@ export * from './existsAsync';
export * from './mkdirAsync';
export * from './readFileAsync';
export * from './readdirAsync';
export * from './renameAsync';
export * from './unlinkAsync';
export * from './writeFileAsync';
+4
View File
@@ -0,0 +1,4 @@
import { promisify } from "util";
import { rename as renameCb } from "fs";
export const renameAsync = promisify(renameCb);