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

WordPress Trac noreply at wordpress.org
Wed Jul 14 14:36:03 UTC 2021


#53659: Optional skipping of hidden files/folders in list_files
--------------------------+-----------------------------
 Reporter:  yani.iliev    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The function always skips hidden files/folders that begin with a dot (`.`)
 This allows for files like `.htaccess` and `.git` to be skipped when
 listing a folder.
 This ticket is about allow to suppress this behavior in the function and
 return hidden files/folders that begin with a dot (`.`).
 One possible solution is to add a new argument to the function so that the
 function is defined as such:
 `function list_files( $folder = '', $levels = 100, $exclusions = array(),
 $skip_dots = true )`

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


More information about the wp-trac mailing list