WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Removing directory does not work

Open ramden opened this issue 10 years ago • 4 comments

root@localhost:/mnt/d/tmp# sudo rm -rf node_modules
rm: cannot remove ‘node_modules/connect’: Directory not empty

The nesting is not very deep, here is the tree output:

root@localhost:/mnt/d/tmp# tree

├── demo.js
├── node_modules
│   └── connect
└── npm-debug.log

2 directories, 2 files

Permissions are 777

Ubuntu Bash run with admin rights

ramden avatar Apr 11 '16 21:04 ramden

Does this work for you?

mkdir /mnt/c/foo mkdir /mnt/c/foo/bar touch /mnt/c/foo/bar/test.test rm -rf /mnt/c/foo

It works for me.

justinSelf avatar Apr 11 '16 22:04 justinSelf

Normal dirs work. For this one I did :

 npm install connect static

I guess npm and node_modules have many issues still

ramden avatar Apr 12 '16 05:04 ramden

Are you still seeing this? I am unable to repro it.

Note that I am not able to npm install static under /mnt/c/tmp.

That said npm install connect does work under /mnt/c/tmp and rm -rf works correctly.

russalex avatar Apr 12 '16 23:04 russalex

Closing this out, if you are still seeing this issue please reopen.

benhillis avatar May 17 '16 15:05 benhillis