React-native-fetch-blob: Is possible to check file exist? if not exist, download it, otherwise return exist path.

Created on 31 Mar 2017  路  4Comments  路  Source: wkh237/react-native-fetch-blob

Dear,

I find that it will return different path when I download same picture.

Is possible to check file exist? if not exist, download it, otherwise return exist path.

Thanks very much.

needs investigation

Most helpful comment

@jiangbophd , you can use fs.exist to check if a file exists.

All 4 comments

@jiangbophd , you can use fs.exist to check if a file exists.

@wkh237 , thanks very much, it is working. but I am still have one question,

is there any property to set background running?

Or our library is already execute the background running.

Thanks again.

@wkh237 , Hi , Could you tell me how to check the file already finished download, I test that some files only download half?

Thanks!

I have similar issue of files getting downloaded partially esp. on iOS
halfdownload_image
.

Was this page helpful?
0 / 5 - 0 ratings