Skip to content

Commit

Permalink
Fixes 'mtime' for Android, #287
Browse files Browse the repository at this point in the history
  • Loading branch information
itinance committed Apr 28, 2017
1 parent 6539499 commit b262391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/rnfs/RNFSManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void readDir(String directory, Promise promise) {
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());
Expand Down

0 comments on commit b262391

Please sign in to comment.