disktidy: add a debug message if a file cannot be deleted
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28898 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a0516f036f
commit
5c48232e45
1 changed files with 2 additions and 1 deletions
|
@ -383,7 +383,8 @@ enum tidy_return tidy_clean(char *path, int *path_length)
|
|||
|
||||
removed++; /* increment removed files counter */
|
||||
/* delete file */
|
||||
rb->remove(path);
|
||||
if (rb->remove(path) != 0)
|
||||
DEBUGF("Could not delete file %s\n", path);
|
||||
|
||||
/* restore path */
|
||||
tidy_path_remove_entry(path, old_path_length, path_length);
|
||||
|
|
Loading…
Reference in a new issue