Fix absolute extension path support

This commit is contained in:
WoLfulus
2020-10-14 03:28:51 -03:00
parent be414b1b39
commit d4fe83f81b

View File

@@ -6,7 +6,7 @@ const readdir = promisify(fs.readdir);
const stat = promisify(fs.stat);
export default async function listFolders(location: string) {
const fullPath = path.join(process.cwd(), location);
const fullPath = path.resolve(location);
const files = await readdir(fullPath);
const directories: string[] = [];