jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.44k stars 776 forks source link

emptyDir returns undefined #960

Closed ayala6521 closed 2 years ago

ayala6521 commented 2 years ago

How to Recreate:

import fse from 'fs-extra';

fse.emptyDir('path/to/dir').then(() => console.log('hello'));
RyanZim commented 2 years ago

You are using a super old version of fs-extra, that predates promise support. Current version is 10.1.0.