iT邦幫忙

0

使用WSL2 在VS Code中進行資料夾改名出現Error: EACCES: permission denied, rename 問題

想請問 我在我的windows 10使用wsl2,並在VS Code中想要進行資料夾改名,卻出現Error: EACCES: permission denied, rename 問題,根據官方文件這個issue 應該已經在wsl2時解決並不存在此問題了。
是否此問題再wsl2並沒有完全修正呢?又或者我的環境設定哪裡需要更改?

額外說明
在settingo.json中設定"remote.WSL.fileWatcher.polling": true 應該是wsl1才需要的

下圖為我的vscode專案中的資料夾結構
https://ithelp.ithome.com.tw/upload/images/20211008/20142722QjgdkTj1T9.png

下圖可以確認使用的version為wsl2 非wsl1

https://ithelp.ithome.com.tw/upload/images/20211008/20142722JnWbT5EIwa.png

想把temlates更名為templates,卻發生問題
https://ithelp.ithome.com.tw/upload/images/20211008/20142722rlu1MY6yWr.png

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
海綿寶寶
iT邦大神 1 級 ‧ 2021-10-08 10:47:39

看看該帳號對該目錄的權限
說不定真的是「權限不足」

我要發表回答

立即登入回答