Skip to content

Commit

Permalink
refactor(windows-files.service): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaGarcia committed Nov 12, 2020
1 parent 81ad353 commit 5063f06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/windows-files.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as PATH from 'path';
import * as fs from 'fs';
import { normalize } from 'path';
import { rmdir } from 'fs';
import * as getSize from 'get-folder-size';

import { FileService, StreamService } from '@core/services';
Expand Down Expand Up @@ -30,7 +30,7 @@ export class WindowsFilesService extends FileService {

const excludeWords = exclude ? exclude.join(' ') : '';

const binPath = PATH.normalize(`${__dirname}/../bin/windows-find`);
const binPath = normalize(`${__dirname}/../bin/windows-find`);
const args = [path, target, excludeWords];

const child = spawn(binPath, args);
Expand All @@ -39,7 +39,7 @@ export class WindowsFilesService extends FileService {

deleteDir(path: string): Promise<boolean> {
return new Promise((resolve, reject) => {
fs.rmdir(path, { recursive: true }, (err) => {
rmdir(path, { recursive: true }, err => {
if (err) {
reject(err);
}
Expand Down

0 comments on commit 5063f06

Please sign in to comment.