[wp-trac] [WordPress Trac] #12150: Improved move method for WP_Filesystem_Direct

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 6 16:40:29 UTC 2010


#12150: Improved move method for WP_Filesystem_Direct
-------------------------+--------------------------------------------------
 Reporter:  reaperhulk   |       Owner:  dd32      
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  Filesystem   |     Version:            
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12150>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list