This function gets the size of a file.
Parameter | Description |
---|---|
path | The file path to check. |
packages | If set to true, all loaded packages will be checked after the file system. |
Returns the size of the file at the specified path if it exists, otherwise returns zero.