Skip to content

Commit

Permalink
chore: properly implement recursive deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Jun 9, 2024
1 parent 894455d commit fd89918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scenes/mtp/mtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ bool DeleteObject(AppMTP* mtp, uint32_t handle) {

if(err != FSE_OK) {
if(file_info_is_dir(&fileinfo)) {
if(storage_dir_remove(mtp->storage, path) != FSE_OK) {
if(!storage_simply_remove_recursive(mtp->storage, path)) {
return false;
}
} else {
Expand Down

0 comments on commit fd89918

Please sign in to comment.