Update scripts

This commit is contained in:
freearhey 2023-09-17 04:08:50 +03:00
parent 89b87ad5c8
commit bb2935878d
16 changed files with 248 additions and 231 deletions

View file

@ -10,10 +10,12 @@ export class Storage {
this.rootDir = path.normalize(rootDir || './')
}
list(pattern: string): Promise<string[]> {
return glob(pattern, {
async list(pattern: string): Promise<string[]> {
const files = await glob(pattern, {
cwd: this.rootDir
})
return files.sort()
}
async createDir(dir: string): Promise<void> {