Function Resource_fs_base->file_size

Definitions

sources/resource_fs_base_class.php

  • Standard Commandr-fs file size function for resource-fs hooks. Calculates the size of a given resource.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$filename LONG_TEXT required parameter N/A N/A Filename OR Resource label
$path string required parameter N/A N/A The path (blank: root / not applicable)
$force_calculate boolean False N/A N/A Whether to forcefully calculate a size if we normally would have returned -1 for dynamic

Return

  • The file size (false: error)
  • Type: ~integer
  • Set: N/A
  • Range: N/A