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

fs.watch on windows prevents directory being deleted cleanly #9394

Closed
xsq007 opened this issue Nov 1, 2016 · 3 comments
Closed

fs.watch on windows prevents directory being deleted cleanly #9394

xsq007 opened this issue Nov 1, 2016 · 3 comments
Labels
fs Issues and PRs related to the fs subsystem / file system. windows Issues and PRs related to the Windows platform.

Comments

@xsq007
Copy link

xsq007 commented Nov 1, 2016

  • Version: 6.5.0
  • Platform: Windows 10 (64-bit)
  • Subsystem: filesystem

I use fs.watch to build a tool to watch file changes.
Now there is a large directory which contains hundreds of subdirectories and files.
When trying to remove this directory with Shift+Delete keys, I found only some subdirectories and files had been removed.
Need to fully clean the directory with Shift+Delete key many times.
It is not good to clean large directory in such a way.

Someone told me it is related with file locking mechanism in Windows, but not know the detail.
Wondering if there is any way to avoid such issue, i.e. clean the large directory watched by fs.watch with only one Shift+Delete keys.

Any suggestions and clues are appreciated. Thanks.

@Fishrock123 Fishrock123 added fs Issues and PRs related to the fs subsystem / file system. windows Issues and PRs related to the Windows platform. labels Nov 1, 2016
@tonydearaujo
Copy link

I use rimraf to delete large files on Windows

npm install rimraf –g
rimraf directory-name

@xsq007
Copy link
Author

xsq007 commented Nov 14, 2016

@tonydearaujo thanks.
However, the tool is mainly for Windows users.
They may use Shift+Delete keys to remove files and directories.

@bzoz
Copy link
Contributor

bzoz commented Jun 20, 2017

The same issue in libuv (libuv/libuv#1118) was closed, so I'll close this one too. You are welcomed to reopen the issue if you still have this problem and you can provide some more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

4 participants