|
|
|
|
371
|
{
|
371
|
{
|
372
|
BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:path];
|
372
|
BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:path];
|
373
|
if(!exists) {
|
373
|
if(!exists) {
|
374
|
- reject(@"RNFetchBlobFS readFile error", @"file not exists", nil);
|
|
|
|
|
374
|
+ reject(@"RNFetchBlobFS readFile error", @"file not exists", [[NSError alloc]init]);
|
375
|
return;
|
375
|
return;
|
376
|
}
|
376
|
}
|
377
|
fileContent = [NSData dataWithContentsOfFile:path];
|
377
|
fileContent = [NSData dataWithContentsOfFile:path];
|