[wp-trac] [WordPress Trac] #57375: Add move_dir() function

WordPress Trac noreply at wordpress.org
Sat Feb 4 01:07:12 UTC 2023


#57375: Add move_dir() function
---------------------------------------------+-----------------------------
 Reporter:  afragen                          |       Owner:  SergeyBiryukov
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.2
Component:  Filesystem API                   |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+-----------------------------

Comment (by azaozz):

 In [changeset:"55219" 55219]:
 {{{
 #!CommitTicketReference repository="" revision="55219"
 Filesystem API: Update `move_dir()` to better handle the differences in
 the `WP_Filesystem::move()` methods.

 Changes `move_dir()` to attempt to delete the destination when
 overwriting, before calling `WP_Filesystem::move()`.

 Props: afragen, costdev, azaozz.
 Fixes: #57375.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57375#comment:77>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list