File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,10 @@ function stat(path:string):Promise<RNFetchBlobFile> {
201
201
if ( err )
202
202
reject ( new Error ( err ) )
203
203
else {
204
- if ( stat )
204
+ if ( stat ) {
205
+ stat . size = parseInt ( stat . size )
205
206
stat . lastModified = parseInt ( stat . lastModified )
207
+ }
206
208
resolve ( stat )
207
209
}
208
210
} )
Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ + (NSDictionary *) stat:(NSString *) path error:(NSError **) error {
516
516
@" size" : size,
517
517
@" filename" : filename,
518
518
@" path" : path,
519
- @" lastModified" : [NSNumber numberWithLong: (time_t ) [lastModified timeIntervalSince1970 ]*1000 ],
519
+ @" lastModified" : [NSString stringWithFormat: @" %@ " , [ NSNumber numberWithLong: (time_t ) [lastModified timeIntervalSince1970 ]*1000 ] ],
520
520
@" type" : isDir ? @" directory" : @" file"
521
521
};
522
522
You can’t perform that action at this time.
0 commit comments