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

WordPress Trac noreply at wordpress.org
Wed Feb 1 02:18:45 UTC 2023


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

Comment (by afragen):

 FWIW I never considered using `move_dir()` for core at this time. It
 hasn't been tested for this.

 I would have tried to test it but the use of `copy_dir()` for core updates
 makes extensive use of `$skip_list` and I don't think it's feasible to do
 this yet. I do have a thought about it and it would entail using the
 `$skip_list` inside `move_dir()` to `unset()` after they had been moved.

 At some point I'll open a ticket for this with a PR. 😉

 Also, the other [https://github.com/WordPress/wordpress-develop/pull/3911
 PR3911] is in #57557

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


More information about the wp-trac mailing list