wkh237 / react-native-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.61k stars 1.59k forks source link

fs.unlink problems #597

Open niros001 opened 6 years ago

niros001 commented 6 years ago

Hi i download images on android devices like that:

.config({
        addAndroidDownloads : {
           path: `${dirs.PictureDir}/some_folder/image01.jpg`,
            useDownloadManager : true, 
            notification : false,
            mime : 'image/jpeg',
            description : 'File downloaded by download manager.'
        }

The photo really exist in Pictures directory and i can see the file in Downloads directory and in the Gallery. The problem occur when i use fs.unlink to remove the file - the file really removed from the Pictures directory but i still see the file in Download directory and in Gallery (just can see the file himself but can see the image).

345ml commented 5 years ago

+1