react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

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

Open visoft opened this issue 3 years ago • 0 comments

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.

visoft avatar Jun 17 '22 19:06 visoft