Merge pull request #326 from K-Leon/patch-1

Fixing broken mTime on Android 5.x
This commit is contained in:
Hagen Hübel
2017-08-10 17:27:11 +02:00
committed by GitHub
@@ -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());