You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using Deno.watchFs to monitor a folder for file system changes, the events for move and remove operations on files are not captured. However, other events such as create, modify, and rename work as expected.
Code Example
const watcher = Deno.watchFs('./in/');
for await (const e of watcher) {
console.log(`>>> event`, e);
}
Steps to Reproduce
Create a folder .\in\ and add a test file (e.g., test01.txt) using the following PowerShell command. New-Item -ItemType File -Path .\in\test01.txt
Perform one of the following actions
Move the file test01.txt to a different location using the File Explorer or the following PowerShell command: Move-Item -Path .\in\test01.txt -Destination .\out\
Remove the file test01.txt using the following PowerShell command: rm .\in\test01.txt
Observe the behavior of Deno.watchFs in the console output.
Expected Behavior
The Deno.watchFs API should emit an event for move and remove operations on files in the watched folder.
Actual Behavior
No event is triggered for move or remove operations, even though other events such as create, modify, and rename are correctly captured.
Environment
OS: Windows 10
Deno version: 2.0.6
std version: 1 (perhaps not sure how to check).
The text was updated successfully, but these errors were encountered:
Description
When using
Deno.watchFs
to monitor a folder for file system changes, the events formove
andremove
operations on files are not captured. However, other events such ascreate
,modify
, andrename
work as expected.Code Example
Steps to Reproduce
Create a folder .\in\ and add a test file (e.g., test01.txt) using the following PowerShell command.
New-Item -ItemType File -Path .\in\test01.txt
Perform one of the following actions
Move-Item -Path .\in\test01.txt -Destination .\out\
rm .\in\test01.txt
Observe the behavior of
Deno.watchFs
in theconsole
output.Expected Behavior
The
Deno.watchFs
API should emit an event formove
andremove
operations on files in the watched folder.Actual Behavior
No event is triggered for
move
orremove
operations, even though other events such ascreate
,modify
, andrename
are correctly captured.Environment
The text was updated successfully, but these errors were encountered: