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:
Alexander Levin 2010-12-25 21:54:24 +00:00
parent a0516f036f
commit 5c48232e45

View file

@ -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);