[wp-trac] [WordPress Trac] #65150: Issue with copy_dir() function t does not skips folders.

WordPress Trac noreply at wordpress.org
Wed Apr 29 11:24:52 UTC 2026


#65150: Issue with copy_dir() function  t does not skips folders.
----------------------------+------------------------------
 Reporter:  neo2k23         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------

Comment (by neo2k23):

 Hi @hbhalodia

 That is the issue. The deeper subfolders with the name in the skiplist
 array are not skipped.


 {{{
 themefolder/
 ├── languages/               ← Skipped ✅ (top-level match via in_array)
 ├── folderA/
 │   └── languages/           ← NOT skipped ❌ (dropped from sub_skip_list)
 └── folderB/
     └── folderC/
         └── languages/       ← NOT skipped ❌ (dropped from sub_skip_list)
 }}}


 Thank you for your investigation.

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


More information about the wp-trac mailing list