Fixes 'mtime' for Android, #287

This commit is contained in:
Hagen Hübel 2017-04-28 10:52:48 +02:00
parent 6539499c84
commit b262391854
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ public class RNFSManager extends ReactContextBaseJavaModule {
for (File childFile : files) {
WritableMap fileMap = Arguments.createMap();
fileMap.putString("mtime", childFile.lastModified());
fileMap.putInt("mtime", (int)childFile.lastModified());
fileMap.putString("name", childFile.getName());
fileMap.putString("path", childFile.getAbsolutePath());
fileMap.putInt("size", (int)childFile.length());