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

WordPress Trac noreply at wordpress.org
Fri Jun 2 02:49:51 UTC 2023


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

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests has-
     testing-info


Comment:

 == Testing Instructions
 These steps define how to reproduce the issue, and indicate the expected
 behavior.

 === Steps to Reproduce
 1. Download [https://core.trac.wordpress.org/raw-
 attachment/ticket/41855/test-41855.zip the attached testing plugin].
 x. Navigate to `Plugins > Add New`.
 x. Click `Upload Plugin`, select `test-41855.zip` and click `Install Now`.
 x. 🐞 Once installed, click `Activate`.
 x. Apply the patch.
 x. ✅ Refresh the page.

 === Expected Results
 When reproducing a bug:
   - ❌ An admin notice should appear stating `Could not create
 directory.`.
   - ❌ `wp-content/plugins/test-41855/test-result/test-directory` should
 not exist.

 When testing a patch to validate it works as expected:
 - ✅ An admin notice should appear stating `Success!` .
 - ✅ `wp-content/plugins/test-41855/test-result/test-directory` should
 exist with the same contents as `wp-content/plugins/test-41855/test-
 directory`.

   **Test Report Icons:**
   🐞 <= Indicates where issue ("bug") occurs.
   ✅ <= Behavior is ''expected''.
   ❌ <= Behavior is ''NOT expected''.

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


More information about the wp-trac mailing list