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:
- Create directory 'watchfiles' in cwd
- Start minimal code example
- Create empty directory 'New folder' in './watchfiles'
- Create empty directory 'New folder' in './watchfiles/New Folder'
- Rename './watchfiles/New Folder' (this directory containg the empty directory) to anything you want
- Error should appear
- Stop node
- Rename should work again
Node: v10.15.3
OS: Windows 10 64bit
OS-Version: 1809
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:
Steps to reproduce:
Node: v10.15.3
OS: Windows 10 64bit
OS-Version: 1809