Fixed stupid errors

This commit is contained in:
Maks 2018-08-21 10:09:38 +02:00 committed by GitHub
parent 7c44b92bce
commit 10f45b6b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
import fs from 'fs';
import _ from 'lodash';
import filetype from 'file-type';
import join from 'path';
import path from 'path';
export class Utils {
static overload(fn, cb) {
@ -504,7 +504,7 @@ export class FileUtils {
try {
await this.directoryExists(pathToDir);
const files = await this.listDirectory(pathToDir);
for (const file of files) {
const pathToFile = path.join(pathToDir, file);
try {
@ -515,7 +515,7 @@ export class FileUtils {
}
}
fs.rmdirSync(path);
fs.rmdirSync(pathToDir);
return true;
} catch (err) {