I have very specific problem which I can't resolve. Thing is, I've created few files with function that creates temporary files and then system cron after running should delete them. Problem that I have is that I have manually deleted (temporary) file named "user-upload" and then created folder which has exact same name. Now when system cron runs it gives me two errors:
Could not delete temporary file "public:///user-upload" during garbage collection public:///user-upload is a directory and cannot be removed using file_unmanaged_delete().
I think I should somehow clear something in database but not exactly sure where to look at. Running drush cc all isn't helping in this case.
EDIT: Eh, it takes you to ask question so you can get better idea. For the reference, solving this issue is locating particular file under database table "file_managed" column "filename" and then manually deleting it. Maybe it will help someone...