Home

class OC\Files\Storage\Home
Specialized version of Local storage for home directory usage
Source:lib/private/Files/Storage/Home.php#34
Parent:OC\Files\Storage\Local
Implements:OCP\Files\IHomeStorage

Properties

protected static property OC\Files\Storage\Home::$id
Source:lib/private/Files/Storage/Home.php#38
Type:string
protected static property OC\Files\Storage\Home::$user
Source:lib/private/Files/Storage/Home.php#43
Type:\OC\User\User

Methods

public OC\Files\Storage\Home::__construct($arguments)
Construct a Home storage instance
Source:

lib/private/Files/Storage/Home.php#51

Parameters:
  • $arguments (array) array with “user” containing the

storage owner

public OC\Files\Storage\Home::getId()
Source:lib/private/Files/Storage/Home.php#59
public OC\Files\Storage\Home::getCache($path="", $storage=null)
Source:lib/private/Files/Storage/Home.php#66
Returns:\OC\Files\Cache\HomeCache
public OC\Files\Storage\Home::getPropagator($storage=null)
get a propagator instance for the cache
Source:lib/private/Files/Storage/Home.php#82
Parameters:
Returns:\OC\Files\Cache\Propagator
public OC\Files\Storage\Home::getUser()
Returns the owner of this home storage
Source:lib/private/Files/Storage/Home.php#98
Returns:\OC\User\User owner of this home storage
public OC\Files\Storage\Home::getOwner($path)
get the owner of a path
Source:

lib/private/Files/Storage/Home.php#108

Parameters:
  • $path (string) The path to get the owner
Returns:

string uid or false