-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.wontfixIssues that will not be fixed.Issues that will not be fixed.
Description
The fs.stat
and fs.statSync
methods have access to an internal statValues
typed array which holds things like raw mtimeMs
values. It would be nice to avoid creating an entire stats object for one-off things like mtimeMs
and friends.
Since Node is already tracking these values in a way that makes it easy to pluck them individually what do you all think about splitting each value out into their own method which then accesses the internal statValues
array instead of creating a catch-all for all-values as the stat methods do today?
Related: This would also nicely side step the perf issue associated with stat
too.
ThisIsMissEm
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.wontfixIssues that will not be fixed.Issues that will not be fixed.