Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: expose Stats times as Numbers #13257

Closed
wants to merge 1 commit into from

Conversation

refack
Copy link
Contributor

@refack refack commented May 27, 2017

Alternative to #13173
for aftr the revert of commit 9836cf5.
Depends on #13256

Expose Stats times as Numbers
also set Date cache fields in constructor

Fixes: #8276
Fixes: #13255
Ref: #12607
Ref: #12818

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

fs

@nodejs-github-bot nodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label May 27, 2017
@refack
Copy link
Contributor Author

refack commented May 27, 2017

assert.strictEqual(false, s.isSymbolicLink());

assert.ok(s.atime instanceof Date);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New Line 99

@refack
Copy link
Contributor Author

refack commented May 28, 2017

Added a test case. New CI:https://ci.nodejs.org/job/node-test-commit/10200/

@refack
Copy link
Contributor Author

refack commented May 31, 2017

Superseded by #13256

@refack refack closed this May 31, 2017
@refack refack deleted the mild-revert-9836cf5 branch June 1, 2017 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

utimes precision errors Provide access to file system times with nanoseconds resolution
3 participants