This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Deleting photos from CameraRoll reports as success but they are still there #479
Open
Description
I'm deleting files from the camera roll, they have paths like:
"assets-library://asset/asset.JPG?id=6A0D5C5D-5839-49B5-878A-52AC130B2C9C&ext=JPG"
and I am doing an array of them, so code is like:
const delete_from_cameraroll = delete_these => {
const d = delete_these.filter(e => e !== null);
console.log({d});
return Promise.all(
d.map(path => {
return RNFetchBlob.fs
.unlink(path)
.then(() => console.log('Success'))
.catch(err => {
console.log(err);
});
})
);
};
And the success case goes off but these photos are still in the camera roll.
Versions:
"react-native": "0.45.1",
"react-native-fetch-blob": "^0.10.8",
I was wondering if this could be something related to missing a permission in Info.plist, but when that happens, apps usually crash and in this case the app does not crash.