Move folder: Permission denied
-
Your Windows build number: -Microsoft Windows [Version 10.0.17763.195]
-
What you're doing and what's happening: I have a folder, looks like: folder1 ├── sub-folder1 └── sub-folder2 └── 1.txt
open vs code in WSL(Using a X server in windows). Open folder "folder1" in vs code.
cd to folder1 and run:
$ mv sub-folder2 ./sub-folder1/ $ mv: cannot move 'sub-folder2' to './sub-folder1/sub-folder2': Permission denied
Close vscode an run the command again, it works. $ mv sub-folder2 ./sub-folder1
$ tree folder1 └── sub-folder1 └── sub-folder2 └── 1.txt
-
What's wrong / what should be happening instead: I tried on other Linux desktop, mv folder is success whatever vs code(or some other software) is opening that folder or not.
#1529
Thank you for your reaponse. Description looks very pro in that thread. Can I ask whether this issue can be fixed in future release?
I have tried to close vs code. but it's work. so I cp those files to the destination folder. then rm the source folder. maybe it's a background.
I have tried to close vs code. but it's work. so I cp those files to the destination folder. then rm the source folder. maybe it's a background.
" I have tried to close vs code. but it's work" this method works for me
This is is very frustrating as it keep hapening , cannot move folders in vscode when in wsl mode making me hafto run cp first the rmdir..
mv: cannot move 'mkcert-v1.4.3-linux-amd64' to '/usr/bin/mkcert': Permission denied
how to solve this