Function CMSPermissionsScannerLinux->process_lsattr
Definitions
sources/file_permissions_check.php
- Find the extended attributes for a path.
- Visibility: protected
- 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 absolute path |
$directory_contents | boolean | No | No | False | N/A | N/A | Whether this is a directory to get the contents of |
Returns
- A map of file paths to extended attribute strings
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the extended attributes for a path.
*
* @param PATH $path The absolute path
* @param boolean $directory_contents Whether this is a directory to get the contents of
* @return array A map of file paths to extended attribute strings
*/
protected function process_lsattr(string $path, bool $directory_contents = false) : array
* Find the extended attributes for a path.
*
* @param PATH $path The absolute path
* @param boolean $directory_contents Whether this is a directory to get the contents of
* @return array A map of file paths to extended attribute strings
*/
protected function process_lsattr(string $path, bool $directory_contents = false) : array