Bug #67554
Updated by Steffen Ritter almost 10 years ago
once you issue a "getFile" which not physically existent anymore you will get a FileObject with "isMissing" true.
As soon as you try to delete that file Storage::deleteFile($object) there is an IO Exception thrown, because the missing flag is not evaluated.
Solution:
In terms the physical file already is missing, just emit the post-deletion signal so the records are cleaned up.