LargeFileHelper¶
-
class
OC\LargeFileHelper¶ - Helper class for large files on 32-bit platforms.
Source: lib/private/LargeFileHelper.php#38
Constants¶
-
POW_2_53 = 9007199254740992 - pow(2, 53) as a base-10 string.
Source: lib/private/LargeFileHelper.php#43 Type: string
-
POW_2_53_MINUS_1 = 9007199254740991 - pow(2, 53) - 1 as a base-10 string.
Source: lib/private/LargeFileHelper.php#49 Type: string
Methods¶
-
public
OC\LargeFileHelper::__construct()¶ Source: lib/private/LargeFileHelper.php#57 Throws: \RunTimeExceptionif our assumptions do not hold on the current PHP platform.
-
public
OC\LargeFileHelper::formatUnsignedInteger($number)¶ Source: Parameters: - $number (int | float | string) Number containing unsigned integer data
Throws: \UnexpectedValueExceptionif $number is not a float, not an int and not a base-10 string.Returns: string Unsigned integer base-10 string
-
public
OC\LargeFileHelper::getFileSize($filename)¶ Source: Parameters: - $filename (string) Path to the file.
Returns: null | int | float Number of bytes as number (float or int) or null on failure.
-
public
OC\LargeFileHelper::getFileSizeViaCurl($fileName)¶ Source: Parameters: - $fileName (string) Path to the file.
Returns: null | int | float Number of bytes as number (float or int) or null on failure.
-
public
OC\LargeFileHelper::getFileSizeViaExec($filename)¶ Source: Parameters: - $filename (string) Path to the file.
Returns: null | int | float Number of bytes as number (float or int) or null on failure.
-
public
OC\LargeFileHelper::getFileSizeNative($filename)¶ Source: Parameters: - $filename (string) Path to the file.
Returns: int | float Number of bytes as number (float or int).
-
public
OC\LargeFileHelper::getFileMtime($fullPath)¶ - Returns the current mtime for $fullPath
Source: Parameters: - $fullPath (string)
Returns: int
-
protected
OC\LargeFileHelper::exec($cmd)¶ Source: lib/private/LargeFileHelper.php#209