Function __global->zip_scan_folder
Definitions
sources/zip.php
- Find file meta information for adding to a ZIP file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $path | PATH | No | No | required parameter | N/A | N/A | The full path to the folder to add |
| $subpath | PATH | No | No | Blank (empty string) | N/A | N/A | The subpath relative to the path (should be left as the default '', as this is used for the recursion to distinguish the adding base path from where it's currently looking) |
Returns
- A list of maps that stores time,full_path,name, for each file
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find file meta information for adding to a ZIP file.
*
* @param PATH $path The full path to the folder to add
* @param PATH $subpath The subpath relative to the path (should be left as the default '', as this is used for the recursion to distinguish the adding base path from where it's currently looking)
* @return array A list of maps that stores time,full_path,name, for each file
*/
function zip_scan_folder(string $path, string $subpath = '') : array
* Find file meta information for adding to a ZIP file.
*
* @param PATH $path The full path to the folder to add
* @param PATH $subpath The subpath relative to the path (should be left as the default '', as this is used for the recursion to distinguish the adding base path from where it's currently looking)
* @return array A list of maps that stores time,full_path,name, for each file
*/
function zip_scan_folder(string $path, string $subpath = '') : array

