I created a lib in the monorepo (in a shared folder), then wanted to move it to another location.
While coping a lib from a folder to another, the command crashed, and the sources from the lib disappeared entirely. (And I feel stupid because i didn't commit my changes first)
See screen capture below:

It should have been successful, since the dry run was.
If it fails, it should restore/keep the source code as it was.
Not 100% sure but:
libs/shared/testnx g @nrwl/workspace:move shared-test shared/otherJust the error on the terminal:
ENOTEMPTY: directory not empty, rmdir 'D:\git-workspace\flo-monorepo\libs\shared\jira'
@nrwl/angular : Not Found
@nrwl/cli : 9.4.5
@nrwl/cypress : 9.4.5
@nrwl/eslint-plugin-nx : 9.4.5
@nrwl/express : Not Found
@nrwl/jest : 9.4.5
@nrwl/linter : 9.4.5
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 9.4.5
@nrwl/web : 9.4.5
@nrwl/workspace : 9.4.5
typescript : 3.9.5
I'm also using VSCode, on a Windows 10 machine
Same behavior here trying to move the entire app to another folder. --dry-run displays correctly the affected files but the process crash due to sub folders
I have the same issue! It's already almost October and no one is on this issue??
This is such a BIG pain right now...
Renaming is a very basic and sometimes crucial functionality, I don't want to rule out this development tool because of a bug like this.
I found a workaround. I closed VSCode and tried to run the command in my terminal and it worked fine. May be related to the folder be open somewhere.
Can confirm using WebStorm aswell. Dry run looked good, running showed an error like "subfolder aren't empty", executing again deletes all sources. I believe this happend because i still had the folders opened in WebStorm. So: Commit your changes before using this generator
Most helpful comment
Same behavior here trying to move the entire app to another folder.
--dry-rundisplays correctly the affected files but the process crash due to sub folders