Rahul Dagli
Rahul Dagli

Reputation: 4502

How to delete a directory using CasperJS

I'm trying to delete a dir recursively which contains files. However, I'm getting error message although the directory exists:

uncaughtError: Unable to remove directory './screenshots/build'

fs.removeDirectory('./screenshots/build');

Upvotes: 1

Views: 135

Answers (0)

Related Questions