/** * Calculate free space left within user quota * @param string $dir the current folder where the user currently operates * @return int number of bytes representing * @since 7.0.0 */ public static function freeSpace($dir) { return \OC_Helper::freeSpace($dir); }