[wp-trac] [WordPress Trac] #53659: Optional skipping of hidden files/folders in list_files

WordPress Trac noreply at wordpress.org
Sun Mar 12 00:23:30 UTC 2023


#53659: Optional skipping of hidden files/folders in list_files
--------------------------------------+---------------------
 Reporter:  yani.iliev                |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.3
Component:  Filesystem API            |     Version:  4.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by costdev):

 * version:   => 4.9
 * milestone:  Awaiting Review => 6.3


Comment:

 - [https://github.com/WordPress/wordpress-develop/pull/4223 PR 4223]
 introduces the `$include_hidden` parameter to allow the inclusion of
 hidden ("." prefixed) files.
 - The parameter name `$include_hidden` is used as this is consistent with
 the parameter name using in the `::dirlist()` filesystem abstraction
 classes, which default to `true`.
 - However, this new parameter in `list_files()` defaults to `false` for
 backward compatibility.

 -----
 - Hidden file exclusion was introduced in [41806]. See
 [https://core.trac.wordpress.org/ticket/6531#comment:54 this comment].
 Setting the `Version` property to `4.9`.
 - Milestoning this ticket for 6.3.

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


More information about the wp-trac mailing list