I tried to delete a remote media file and it errors because it fails the is_file() check in file_managed_delete().

CommentFileSizeAuthor
#1 1231688-file-delete-fails.patch6.32 KBdave reid

Comments

dave reid’s picture

Assigned: Unassigned » dave reid
Status: Active » Needs review
StatusFileSize
new6.32 KB

Thanks to rfay's excellent stream wrapper example, I got the correct way to 'emulate' an is_file() = TRUE result. Also adding some tests, so I'd like to see how the testbot works with this.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.