szwacz / fs-jetpack

Better file system API for Node.js
MIT License
777 stars 41 forks source link

fsj->dir empties directories per default? #87

Closed michapixel closed 4 years ago

michapixel commented 4 years ago

jesus christ! it completely emptied all of my gitlab-projects-directories.

szwacz commented 4 years ago

It doesn't: https://github.com/szwacz/fs-jetpack/blob/master/spec/dir.spec.ts#L92 If some misconfiguration of fs-jetpack led to unintended consequences please tell your story. Maybe it will be possible to add guards the the API so it won't happen again.

papb commented 4 years ago

I am a constant user of fs-jetpack and I've never seen this happen. And jetpack.dir is one of the functions I use the most. Please tell your story so we can investigate it. I can't help but think that you made some mistake.

michapixel commented 4 years ago

i already closed this ;) It wasn't fsj, in fact it was a nodegit, as i was trying sth. to clone / pull dozens of projects. sorry for the buzz.