itinance / itinance/react-native-fs

IOS `stat` returns current date/time for image file

Open
#1,106 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I'm only having an issue with iOS.

I'm passing the following to the `stat` function:

```
file:///Users/me/Library/Developer/CoreSimulator/Devices/D985B302-5A79-467F-8B34-EABD4B203A69/data/Containers/Shared/AppGroup/9EDB46BD-9880-46C2-BF54-44247F2BD974/5D3C9ECA-3719-44D3-AD2A-0C7AA7E65E72.JPG
```

It returns with a `ctime` and `mtime` of the current time/date, not the file's date like it does on Android. Do I need to do something to that path on iOS?

As you can tell, this is from the simulator. Does the same on my real device.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.