Regression: Adds idempotent prop to delete audio (#4862)
This commit is contained in:
parent
68f6eb40de
commit
c4a2ce20c6
|
@ -52,7 +52,7 @@ export const deleteAllAudioFiles = async (serverUrl: string): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const serverUrlParsed = sanitizeString(serverUrl);
|
const serverUrlParsed = sanitizeString(serverUrl);
|
||||||
const path = `${FileSystem.documentDirectory}audios/${serverUrlParsed}`;
|
const path = `${FileSystem.documentDirectory}audios/${serverUrlParsed}`;
|
||||||
await FileSystem.deleteAsync(path);
|
await FileSystem.deleteAsync(path, { idempotent: true });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log(error);
|
log(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue