Skip to content

Commit b262391

Browse files
committed
Fixes 'mtime' for Android, #287
1 parent 6539499 commit b262391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/rnfs/RNFSManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public void readDir(String directory, Promise promise) {
259259
for (File childFile : files) {
260260
WritableMap fileMap = Arguments.createMap();
261261

262-
fileMap.putString("mtime", childFile.lastModified());
262+
fileMap.putInt("mtime", (int)childFile.lastModified());
263263
fileMap.putString("name", childFile.getName());
264264
fileMap.putString("path", childFile.getAbsolutePath());
265265
fileMap.putInt("size", (int)childFile.length());

0 commit comments

Comments
 (0)