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

Renaming directories with childs on windows locked #144

Open
FleMo93 opened this issue May 9, 2019 · 1 comment
Open

Renaming directories with childs on windows locked #144

FleMo93 opened this issue May 9, 2019 · 1 comment

Comments

@FleMo93
Copy link

FleMo93 commented May 9, 2019

When i try to rename a directory which contains at least one other directory, Windows is throwing the error, that the directory is opened by another process.

Minimale code:

const sane = require('sane');

const watcher = sane('watchfiles');
watcher.on('ready', () => console.log("watching..."));
watcher.on('all', (event, path) => {
  console.log(event + " on " + path);
});

Steps to reproduce:

  1. Create directory 'watchfiles' in cwd
  2. Start minimal code example
  3. Create empty directory 'New folder' in './watchfiles'
  4. Create empty directory 'New folder' in './watchfiles/New Folder'
  5. Rename './watchfiles/New Folder' (this directory containg the empty directory) to anything you want
  6. Error should appear
  7. Stop node
  8. Rename should work again

Node: v10.15.3
OS: Windows 10 64bit
OS-Version: 1809

@avilene
Copy link

avilene commented Mar 31, 2020

I'm having the same issue when duplicating a folder that is being watched, even though the glob itself leads to a file: */folderName/file.lua
Node: 12.4.0
OS: Windows 10 64bit
OS version: 1809

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

No branches or pull requests

2 participants