WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Move folder: Permission denied

Open timesnewmen opened this issue 7 years ago • 6 comments

  • 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.

timesnewmen avatar Dec 29 '18 10:12 timesnewmen

#1529

therealkenc avatar Dec 29 '18 21:12 therealkenc

Thank you for your reaponse. Description looks very pro in that thread. Can I ask whether this issue can be fixed in future release?

timesnewmen avatar Dec 30 '18 06:12 timesnewmen

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.

baluoteliz avatar Jun 07 '20 16:06 baluoteliz

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

DumiduPramith avatar Dec 13 '20 16:12 DumiduPramith

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..

andersakerberg avatar Mar 20 '21 08:03 andersakerberg

mv: cannot move 'mkcert-v1.4.3-linux-amd64' to '/usr/bin/mkcert': Permission denied

how to solve this

Kevspecial avatar Jan 13 '23 10:01 Kevspecial