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

RNFS.stat ctime and mtime #684

Open
dantn93 opened this issue Jun 3, 2019 · 3 comments
Open

RNFS.stat ctime and mtime #684

dantn93 opened this issue Jun 3, 2019 · 3 comments

Comments

@dantn93
Copy link

dantn93 commented Jun 3, 2019

Please review ctime and mtime in RNFS.stat
I think that they are wrong. Thanks!

@alxroyer
Copy link

alxroyer commented Feb 2, 2023

I think that they are wrong.

According to me, as of react-native-fs@2.20.0, the date information retrieved by RNFS.stat() is correct, but the types given for ctime and mtime by index.d.ts are wrong:

  • the documentation tells about "date",
  • index.d.ts indicates number types,
  • from my testings, ctime and mtime contain valid information, but are Date objects, not numbers.

@alxroyer
Copy link

alxroyer commented Feb 2, 2023

Shall I propose a PR on that?

@tiagomsmagalhaes
Copy link

I just found this issue, and there's already an open PR to fix it.

Shame that this repo seems to be stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants