Closed hayleigh-dot-dev closed 11 months ago
Whoops, I've got to start doing proper debugging. I'll get this fixed asap :)
Fixed with latest publish (v0.1.14) :)
I also added a function delete_all
which takes a list of paths to delete. It specifically ignores an enoent (no such file or directory) error, so instead of let _ = simplifile.delete(out_dir)
you can call let res = simplifile.delete_all([out_dir])
and handle the error if there is one (for example, a permission error).
I have some code that attempts to delete a directory if it exists but doesn't care if the operation fails.
When this code runs on a project where
out_dir
doesnt exist, node throws a runtime error:It looks like you have a stray console.log that probably should have been removed before release :)