[wp-trac] [WordPress Trac] #41855: copy_dir fails in coping some files in nested dirs

WordPress Trac noreply at wordpress.org
Mon Jun 19 01:58:40 UTC 2023


#41855: copy_dir fails in coping some files in nested dirs
-------------------------------------------------+-------------------------
 Reporter:  caraffande                           |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  Filesystem API                       |     Version:  4.8.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55938" 55938]:
 {{{
 #!CommitTicketReference repository="" revision="55938"
 Filesystem API: Attempt to create directory in `copy_dir()`.

 Adds a check to the start of `copy_dir()` that the destination directory
 exists and attempts to create it if it does not.

 An error is returned if the directory can not be created, either due to a
 permissions error or the parent directory not existing.

 Props caraffande, costdev, zunaid321.
 Fixes #41855.
 }}}

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


More information about the wp-trac mailing list