version: 2.1.3
size
receive size from path(can be url or file path), if format parameter has true value , the returned size converted to symbolic format
Parameters
path | string | The address of local file or online file to get it size | Yes |
format | Boolean | Convert size to symbolic format(B,KB,MB,...) | Optional(true) |
Method errors
ErrorName | description |
---|---|
path parameter not found | parameter path not founded , set it like example |
File not found | selected file not found , check path parameter |
Method examples
$this->size(['path'=>'xFile.zip','format'=>false]);
$this->size(['path'=>'xFile.zip']);