File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 *--------------------------------------------------------------------------------------------*/
55import * as tmp from 'tmp' ;
6- import { rmdir } from 'fs-extra' ;
6+ import { remove } from 'fs-extra' ;
77import { NestedError } from './nestedError' ;
88
99export async function CreateTmpFile ( ) : Promise < TmpAsset > {
@@ -43,7 +43,7 @@ export async function CreateTmpDir(unsafeCleanup: boolean): Promise<TmpAsset> {
4343 name : tmpDir . name ,
4444 dispose : ( ) => {
4545 if ( unsafeCleanup ) {
46- rmdir ( tmpDir . name ) . catch ( ( rejectReason ) => {
46+ remove ( tmpDir . name ) . catch ( ( rejectReason ) => {
4747 throw new Error ( `Failed to cleanup ${ tmpDir . name } at ${ tmpDir . fd } : ${ rejectReason } ` ) ;
4848 } ) ; //to delete directories that have folders inside them
4949 } else {
You can’t perform that action at this time.
0 commit comments