DAV¶
-
class
OC\Files\Storage\DAV¶ - Class DAV
Source: lib/private/Files/Storage/DAV.php#67 Parent: OC\Files\Storage\Common
Properties¶
-
protected static property
OC\Files\Storage\DAV::$password¶ Source: lib/private/Files/Storage/DAV.php#69 Type: string
-
protected static property
OC\Files\Storage\DAV::$user¶ Source: lib/private/Files/Storage/DAV.php#71 Type: string
-
protected static property
OC\Files\Storage\DAV::$authType¶ Source: lib/private/Files/Storage/DAV.php#73 Type: string | null
-
protected static property
OC\Files\Storage\DAV::$host¶ Source: lib/private/Files/Storage/DAV.php#75 Type: string
-
protected static property
OC\Files\Storage\DAV::$secure¶ Source: lib/private/Files/Storage/DAV.php#77 Type: bool
-
protected static property
OC\Files\Storage\DAV::$root¶ Source: lib/private/Files/Storage/DAV.php#79 Type: string
-
protected static property
OC\Files\Storage\DAV::$certPath¶ Source: lib/private/Files/Storage/DAV.php#81 Type: string
-
protected static property
OC\Files\Storage\DAV::$ready¶ Source: lib/private/Files/Storage/DAV.php#83 Type: bool
-
protected static property
OC\Files\Storage\DAV::$client¶ Source: lib/private/Files/Storage/DAV.php#85 Type: \Sabre\DAV\Client
-
protected static property
OC\Files\Storage\DAV::$statCache¶ Source: lib/private/Files/Storage/DAV.php#87 Type: \OC\MemCache\ArrayCache
-
protected static property
OC\Files\Storage\DAV::$httpClientService¶ Source: lib/private/Files/Storage/DAV.php#89 Type: \OCP\Http\Client\IClientService
-
protected static property
OC\Files\Storage\DAV::$certManager¶ Source: lib/private/Files/Storage/DAV.php#91 Type: \OCP\ICertificateManager
Methods¶
-
public
OC\Files\Storage\DAV::__construct($params)¶ Source: Parameters: - $params (array)
Throws: \Exception
-
protected
OC\Files\Storage\DAV::init()¶ Source: lib/private/Files/Storage/DAV.php#135
-
public
OC\Files\Storage\DAV::clearStatCache()¶ - Clear the stat cache
Source: lib/private/Files/Storage/DAV.php#172
-
public
OC\Files\Storage\DAV::getId()¶ -
Source: lib/private/Files/Storage/DAV.php#177
-
public
OC\Files\Storage\DAV::createBaseUri()¶ -
Source: lib/private/Files/Storage/DAV.php#182
-
public
OC\Files\Storage\DAV::mkdir($path)¶ -
Source: lib/private/Files/Storage/DAV.php#192
-
public
OC\Files\Storage\DAV::rmdir($path)¶ -
Source: lib/private/Files/Storage/DAV.php#203
-
public
OC\Files\Storage\DAV::opendir($path)¶ -
Source: lib/private/Files/Storage/DAV.php#215
-
protected
OC\Files\Storage\DAV::propfind($path)¶ - Propfind call with cache handling.First checks if information is cached.If not, request it from the server then store to cache.
Source: Parameters: - $path (string) path to propfind
Returns: array | bool propfind response or false if the entry was not found
Throws: \Sabre\HTTP\ClientHttpException
-
public
OC\Files\Storage\DAV::filetype($path)¶ -
Source: lib/private/Files/Storage/DAV.php#299
-
public
OC\Files\Storage\DAV::file_exists($path)¶ -
Source: lib/private/Files/Storage/DAV.php#318
-
public
OC\Files\Storage\DAV::unlink($path)¶ -
Source: lib/private/Files/Storage/DAV.php#337
-
public
OC\Files\Storage\DAV::fopen($path, $mode)¶ -
Source: lib/private/Files/Storage/DAV.php#347
-
public
OC\Files\Storage\DAV::writeBack($tmpFile, $path)¶ Source: Parameters: - $tmpFile (string)
-
public
OC\Files\Storage\DAV::free_space($path)¶ -
Source: lib/private/Files/Storage/DAV.php#428
-
public
OC\Files\Storage\DAV::touch($path, $mtime=null)¶ -
Source: lib/private/Files/Storage/DAV.php#448
-
public
OC\Files\Storage\DAV::file_put_contents($path, $data)¶ Source: Parameters: - $path (string)
- $data (mixed)
Returns: int | bool
-
protected
OC\Files\Storage\DAV::uploadFile($path, $target)¶ Source: Parameters: - $path (string)
- $target (string)
-
public
OC\Files\Storage\DAV::rename($path1, $path2)¶ -
Source: lib/private/Files/Storage/DAV.php#523
-
public
OC\Files\Storage\DAV::copy($path1, $path2)¶ -
Source: lib/private/Files/Storage/DAV.php#555
-
public
OC\Files\Storage\DAV::stat($path)¶ -
Source: lib/private/Files/Storage/DAV.php#584
-
public
OC\Files\Storage\DAV::getMimeType($path)¶ -
Source: lib/private/Files/Storage/DAV.php#601
-
public
OC\Files\Storage\DAV::getMimeTypeFromRemote($path)¶ Source: lib/private/Files/Storage/DAV.php#610
-
public
OC\Files\Storage\DAV::cleanPath($path)¶ Source: Parameters: - $path (string)
Returns: string
-
protected
OC\Files\Storage\DAV::encodePath($path)¶ - URL encodes the given path but keeps the slashes
Source: Parameters: - $path (string) to encode
Returns: string encoded path
-
protected
OC\Files\Storage\DAV::simpleResponse($method, $path, $body, $expected)¶ Source: Parameters: - $method (string)
- $path (string)
- $body (string | resource | null)
- $expected (int)
Returns: bool
Throws: Throws: Throws: Throws:
-
public static
OC\Files\Storage\DAV::checkDependencies()¶ - check if curl is installed
Source: lib/private/Files/Storage/DAV.php#689
-
public
OC\Files\Storage\DAV::isUpdatable($path)¶ -
Source: lib/private/Files/Storage/DAV.php#694
-
public
OC\Files\Storage\DAV::isCreatable($path)¶ -
Source: lib/private/Files/Storage/DAV.php#699
-
public
OC\Files\Storage\DAV::isSharable($path)¶ -
Source: lib/private/Files/Storage/DAV.php#704
-
public
OC\Files\Storage\DAV::isDeletable($path)¶ -
Source: lib/private/Files/Storage/DAV.php#709
-
public
OC\Files\Storage\DAV::getPermissions($path)¶ -
Source: lib/private/Files/Storage/DAV.php#714
-
public
OC\Files\Storage\DAV::getETag($path)¶ -
Source: lib/private/Files/Storage/DAV.php#733
-
protected
OC\Files\Storage\DAV::parsePermissions($permissionsString)¶ Source: Parameters: - $permissionsString (string)
Returns: int
-
public
OC\Files\Storage\DAV::hasUpdated($path, $time)¶ - check if a file or folder has been updated since $time
Source: Parameters: - $path (string)
- $time (int)
Throws: Returns: bool
-
protected
OC\Files\Storage\DAV::convertException($e, $path="")¶ - Interpret the given exception and decide whether it is due to anunavailable storage, invalid storage or other.This will either throw StorageInvalidException, StorageNotAvailableExceptionor do nothing.
Source: Parameters: - $e (
Exception) sabre exception - $path (string) optional path from the operation
Throws: \OCP\Files\StorageInvalidExceptionif the storage is invalid, for example when the authentication expired or is invalidThrows: \OCP\Files\StorageNotAvailableExceptionif the storage is not available, which might be temporaryThrows: \OCP\Files\ForbiddenExceptionif the action is not allowedThrows: \OCP\Files\StorageInvalidExceptionif the storage is invalid, for example when the authentication expired or is invalidThrows: \OCP\Files\StorageNotAvailableExceptionif the storage is not available, which might be temporaryThrows: \OCP\Files\ForbiddenExceptionif the action is not allowedThrows: \OCP\Files\StorageInvalidExceptionif the storage is invalid, for example when the authentication expired or is invalidThrows: \OCP\Files\StorageNotAvailableExceptionif the storage is not available, which might be temporaryThrows: \OCP\Files\ForbiddenExceptionif the action is not allowed - $e (