🩹 checkDirectory no longer depend on node path
This commit is contained in:
parent
fdff2b6852
commit
49f4e6d200
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,6 @@ import fs from "fs";
|
||||||
const fsPromises = fs.promises;
|
const fsPromises = fs.promises;
|
||||||
|
|
||||||
export default async (path: string) => {
|
export default async (path: string) => {
|
||||||
const result = await fsPromises.readdir(path);
|
const result = await fsPromises.readdir(`${__dirname}/../../${path}`);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue