Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tried to delete a remote media file and it errors because it fails the is_file() check in file_managed_delete().
Comment | File | Size | Author |
---|---|---|---|
#1 | 1231688-file-delete-fails.patch | 6.32 KB | Dave Reid |
Comments
Comment #1
Dave ReidThanks 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.
Comment #2
Dave ReidCommitted #1 to Git.
http://drupalcode.org/project/remote_stream_wrapper.git/commit/898dba3