jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.44k stars 776 forks source link

move: do not create parent directory if it is root #897

Closed manidlou closed 3 years ago

manidlou commented 3 years ago

Fixes #819.

Do not create parent directory if it is root. We run tests for this only on windows, moving to root on unix-like systems requires sudo privileges.