-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
Description
- Version: 7.4.0
- Subsystem: fs
If you try to read a directory, the behavior will be platform specific:
// linux/windows/os x
fs.readFileSync("node_modules");
// -> Error: EISDIR: illegal operation on a directory, read
// freebsd
fs.readFileSync("node_modules");
// -> <Buffer 03 00 00 ... >
Is it ok? I expected the same result on all platforms
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.