TempManager¶
-
class
OC\TempManager¶ Source: lib/private/TempManager.php#40 Implements: OCP\ITempManager
Constants¶
-
TMP_PREFIX = oc_tmp_ - Prefix
Source: lib/private/TempManager.php#53
Properties¶
-
protected static property
OC\TempManager::$current¶ Source: lib/private/TempManager.php#42 Type: string[] Current temporary files and folders, used for cleanup
-
protected static property
OC\TempManager::$tmpBaseDir¶ Source: lib/private/TempManager.php#44 Type: string i.e. /tmp on linux systems
-
protected static property
OC\TempManager::$log¶ Source: lib/private/TempManager.php#46 Type: \Psr\Log\LoggerInterface
-
protected static property
OC\TempManager::$config¶ Source: lib/private/TempManager.php#48 Type: \OCP\IConfig
-
protected static property
OC\TempManager::$iniGetWrapper¶ Source: lib/private/TempManager.php#50 Type: \bantu\IniGetWrapper\IniGetWrapper
Methods¶
-
public
OC\TempManager::__construct($logger, $config, $iniGetWrapper)¶ Source: lib/private/TempManager.php#55
-
public
OC\TempManager::getTemporaryFile($postFix="")¶ - Create a temporary file and return the path
Source: Parameters: - $postFix (string) Postfix appended to the temporary file name
Returns: string
-
public
OC\TempManager::getTemporaryFolder($postFix="")¶ - Create a temporary folder and return the path
Source: Parameters: - $postFix (string) Postfix appended to the temporary folder name
Returns: string
-
public
OC\TempManager::clean()¶ - Remove the temporary files and folders generated during this request
Source: lib/private/TempManager.php#152
-
protected
OC\TempManager::cleanFiles($files)¶ Source: Parameters: - $files (string[])
-
public
OC\TempManager::cleanOld()¶ - Remove old temporary files and folders that were failed to be cleaned
Source: lib/private/TempManager.php#180
-
protected
OC\TempManager::getOldFiles()¶ - Get all temporary files and folders generated by oc older than an hour
Source: lib/private/TempManager.php#189 Returns: string[]
-
public
OC\TempManager::getTempBaseDir()¶ - Get the temporary base directory configured on the server
Source: lib/private/TempManager.php#213 Returns: string Path to the temporary directory or null Throws: \UnexpectedValueException
-
public
OC\TempManager::overrideTempBaseDir($directory)¶ - Override the temporary base directory
Source: Parameters: - $directory (string)