Function Hook_commandr_fs_home->get_file_size

Definitions

sources/hooks/systems/commandr_fs/home.php

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

Parameters

Name Type Default Set Range Description
$meta_dir array required parameter N/A N/A The current meta-directory path
$meta_root_node string required parameter N/A N/A The root node of the current meta-directory
$file_name string required parameter N/A N/A The file name
$force_calculate boolean required parameter N/A N/A Whether to forcefully calculate a size where we would otherwise return -1 for dynamic
$commandr_fs object required parameter N/A N/A A reference to the Commandr filesystem object

Return

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