Improved move method for WP_Filesystem_Direct
|Reported by:||reaperhulk||Owned by:||dd32|
WP_Filesystem_Direct currently uses the copy method to accomplish a move. Ideally it should attempt to use rename() first, then fall back to copy to preserve previous behavior. This handles the failure mode of the source being read only, so the copy succeeds to the new location and then the delete fails silently).
A preliminary patch is attached.
Change History (7)
- Keywords needs-patch added; has-patch removed
- Milestone changed from Unassigned to 3.0