Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
rm ($path, $skipPaths=[], $removeRoot=false) | |
getInfo ($path, $infoOptions=self::INFO_ALL, $skipFiles=[]) | |
Data Fields | |
const | INFO_WRITABLE = 1 |
const | INFO_READABLE = 2 |
const | INFO_SIZE = 4 |
const | INFO_ALL = 7 |
Filesystem helper
Definition at line 17 of file Helper.php.
getInfo | ( | $path, | |
$infoOptions = self::INFO_ALL , |
|||
$skipFiles = [] |
|||
) |
Get information (readable, writable, size) about $path
string | $path | |
int | $infoOptions | |
array | $skipFiles |
Definition at line 89 of file Helper.php.
rm | ( | $path, | |
$skipPaths = [] , |
|||
$removeRoot = false |
|||
) |
Recursively delete $path
string | $path | |
array | $skipPaths | |
bool | $removeRoot |
Definition at line 61 of file Helper.php.
const INFO_ALL = 7 |
Constant can be used in getInfo() function as second parameter. Combination of INFO_WRITABLE, INFO_READABLE, INFO_SIZE
@const int
Definition at line 49 of file Helper.php.
const INFO_READABLE = 2 |
Constant can be used in getInfo() function as second parameter. Check whether directory and all files/sub directories are readable
@const int
Definition at line 33 of file Helper.php.
const INFO_SIZE = 4 |
Constant can be used in getInfo() function as second parameter. Get directory size
@const int
Definition at line 41 of file Helper.php.
const INFO_WRITABLE = 1 |
Constant can be used in getInfo() function as second parameter. Check whether directory and all files/sub directories are writable
@const int
Definition at line 25 of file Helper.php.