Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 无法使用 fse 清空 workspace dir #72

Open
iamkun opened this issue May 24, 2024 · 2 comments
Open

[BUG] 无法使用 fse 清空 workspace dir #72

iamkun opened this issue May 24, 2024 · 2 comments
Labels

Comments

@iamkun
Copy link
Contributor

iamkun commented May 24, 2024

描述你的问题(Describe the bug)

使用 fes.rmdirSync(workspacePath) 会有如图所示异常
image

复现路径(To Reproduce)

预期表现(Expected behavior)
可以清空目录,或更友好的报错提示(如根目录无法清空)

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser: [e.g. chrome, safari, electron]
  • Codeblitz Version: [e.g. 1.0.0]
@daju233
Copy link

daju233 commented Sep 17, 2024

Can I try to fix it?

@bytemain
Copy link
Member

Can I try to fix it?

PR welcome~

this is because the workspaceDir path is a mounted filesystem, so you cannot rmdirSync but you can unmount it.

CleanShot 2024-09-18 at 11 40 16@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants