Version
23.10.0
Platform
Subsystem
fs
What steps will reproduce the bug?
- In the Finder on Mac create a folder which contains a \ , e.g. "a\b"
- In a terminal do an "ls", you will find "a:b" as the folder name
- Now when using the fs package use the existsSync function
Result: The folder is not found.
import * as fs from 'fs';
...
const folder = "a:b";
if (fs.existsSync(folder))
console.log("found");
else
console.log("not found");
Note: you have to use absolute paths according to where you create the folder:
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
existsSync should find the folder.
What do you see instead?
existsSync does not find the folder.
Additional information
No response
Version
23.10.0
Platform
Subsystem
fs
What steps will reproduce the bug?
Result: The folder is not found.
Note: you have to use absolute paths according to where you create the folder:
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
existsSync should find the folder.
What do you see instead?
existsSync does not find the folder.
Additional information
No response