fs.watch() strips backslash directory separators for filenames/paths on Windows #940
Labels
api
An issue, task, or discussion related to public runtime APIs
bug
Something isn't working
javascript
An issue, discussion, or task related to the runtime javascript
runtime
An issue, task, or discussion related to the runtime core
windows
What OS are you using (
uname -a
, or Windows version)?Windows 11
What version Socket Runtime are you using?
0.5.4 (f90ba12)
What did you expect to see and what you saw instead?
I'm using fs.watch() to watch a directory and its sub directories for changes. I expect to receive events for changes with the respected path in the event:
{ eventType: 'rename', filename: 'PuzzleNotes\SubTestPuzzle\Textdokument (neu).txt' }
instead, I get this:
{ eventType: 'rename', filename: 'PuzzleNotesSubTestPuzzleTextdokument (neu).txt' }
The directory separators are missing. I did not test on any other platform then Windows, but I could imagine the the \ (backslashes) are being stripped somethere in the ipc communication.
The text was updated successfully, but these errors were encountered: