peter-vilja / gulp-clean

A gulp plugin for removing files and folders from given paths.
178 stars 21 forks source link

Errors when symlink is present #5

Open scriby opened 10 years ago

scriby commented 10 years ago

I think the problem is that gulp expands the files under the symlink, clean deletes the symlink, the files under the symlink go away, then clean errors when trying to delete those files.

I'm not sure whether gulp should have an option to not follow symlinks, or clean should either figure it out or suppress errors.

(I also submitted this against gulp-rimraf)

gforceg commented 8 years ago

Could this be why? http://stackoverflow.com/questions/210120/remove-a-symlink-to-a-directory#210133