mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 01:42:26 +00:00
We already use `rimraf` for deleting os temporary directories, however there are a few benefits of using it for files as well: - Simplicity. We avoid having to check if a path is a file or directory. - `rimraf` attempts to workaround the known Windows issues of anti viruses not closing files. Described in more detail here: https://github.com/resin-io/resin-cli/blob/master/TROUBLESHOOTING.md#i-get-ebusy-errors-after-initializing-a-device-even-as-administrator-on-windows