mirror of
https://github.com/status-im/react-native-fs.git
synced 2026-08-27 10:01:09 +00:00
Merge pull request #326 from K-Leon/patch-1
Fixing broken mTime on Android 5.x
This commit is contained in:
@@ -312,7 +312,7 @@ public class RNFSManager extends ReactContextBaseJavaModule {
|
||||
for (File childFile : files) {
|
||||
WritableMap fileMap = Arguments.createMap();
|
||||
|
||||
fileMap.putInt("mtime", (int)childFile.lastModified());
|
||||
fileMap.putDouble("mtime", (double)childFile.lastModified()/1000);
|
||||
fileMap.putString("name", childFile.getName());
|
||||
fileMap.putString("path", childFile.getAbsolutePath());
|
||||
fileMap.putInt("size", (int)childFile.length());
|
||||
|
||||
Reference in New Issue
Block a user