Root¶
- 
class 
OC\Files\Node\Root¶ - Class RootHooks available in scope \OC\Files- preWrite(\OCP\Files\Node $node)- postWrite(\OCP\Files\Node $node)- preCreate(\OCP\Files\Node $node)- postCreate(\OCP\Files\Node $node)- preDelete(\OCP\Files\Node $node)- postDelete(\OCP\Files\Node $node)- preTouch(\OC\FilesP\Node $node, int $mtime)- postTouch(\OCP\Files\Node $node)- preCopy(\OCP\Files\Node $source, \OCP\Files\Node $target)- postCopy(\OCP\Files\Node $source, \OCP\Files\Node $target)- preRename(\OCP\Files\Node $source, \OCP\Files\Node $target)- postRename(\OCP\Files\Node $source, \OCP\Files\Node $target)
Source: lib/private/Files/Node/Root.php#66 Parent: OC\Files\Node\FolderImplements: OCP\Files\IRootFolder 
Properties¶
Methods¶
- 
public 
OC\Files\Node\Root::__construct($manager, $view, $user, $userMountCache, $logger, $userManager)¶ Source: Parameters: - $manager (
OC\Files\Mount\Manager) - $view (
OC\Files\View) - $user (
OC\User\User| null) - $userMountCache (
OCP\Files\Config\IUserMountCache) - $logger (
OCP\ILogger) - $userManager (
OCP\IUserManager) 
- $manager (
 
- 
public 
OC\Files\Node\Root::getUser()¶ - Get the user for which the filesystem is setup
Source: lib/private/Files/Node/Root.php#111 Returns: \OC\User\User 
- 
public 
OC\Files\Node\Root::listen($scope, $method, $callback)¶ Source: Parameters: - $scope (string)
 - $method (string)
 - $callback (callable)
 
- 
public 
OC\Files\Node\Root::removeListener($scope=null, $method=null, $callback=null)¶ Source: Parameters: - $scope (string) optional
 - $method (string) optional
 - $callback (callable) optional
 
- 
public 
OC\Files\Node\Root::emit($scope, $method, $arguments=[])¶ Source: Parameters: - $scope (string)
 - $method (string)
 - $arguments (
OC\Files\Node\Node[]) 
- 
public 
OC\Files\Node\Root::mount($storage, $mountPoint, $arguments=[])¶ Source: Parameters: - $storage (
OC\Files\Storage\Storage) - $mountPoint (string)
 - $arguments (array)
 
- $storage (
 
- 
public 
OC\Files\Node\Root::getMount($mountPoint)¶ Source: Parameters: - $mountPoint (string)
 
Returns: 
- 
public 
OC\Files\Node\Root::getMountsIn($mountPoint)¶ Source: Parameters: - $mountPoint (string)
 
Returns: 
- 
public 
OC\Files\Node\Root::getMountByStorageId($storageId)¶ Source: Parameters: - $storageId (string)
 
Returns: 
- 
public 
OC\Files\Node\Root::getMountByNumericStorageId($numericId)¶ Source: Parameters: - $numericId (int)
 
Returns: 
- 
public 
OC\Files\Node\Root::unMount($mount)¶ Source: Parameters: - $mount (
OC\Files\Mount\MountPoint) 
- $mount (
 
- 
public 
OC\Files\Node\Root::get($path)¶ Source: Parameters: - $path (string)
 
Throws: Throws: Throws: Throws: Returns: 
- 
public 
OC\Files\Node\Root::rename($targetPath)¶ Source: Parameters: - $targetPath (string)
 
Throws: Returns: 
- 
public 
OC\Files\Node\Root::delete()¶ Source: lib/private/Files/Node/Root.php#223 
- 
public 
OC\Files\Node\Root::copy($targetPath)¶ Source: Parameters: - $targetPath (string)
 
Throws: Returns: 
- 
public 
OC\Files\Node\Root::touch($mtime=null)¶ Source: Parameters: - $mtime (int)
 
Throws: 
- 
public 
OC\Files\Node\Root::getStorage()¶ Source: lib/private/Files/Node/Root.php#248 Returns: \OC\Files\Storage\StorageThrows: \OCP\Files\NotFoundException
- 
public 
OC\Files\Node\Root::getPath()¶ Source: lib/private/Files/Node/Root.php#255 Returns: string 
- 
public 
OC\Files\Node\Root::getInternalPath()¶ Source: lib/private/Files/Node/Root.php#262 Returns: string 
- 
public 
OC\Files\Node\Root::getId()¶ Source: lib/private/Files/Node/Root.php#269 Returns: int 
- 
public 
OC\Files\Node\Root::stat()¶ Source: lib/private/Files/Node/Root.php#276 Returns: array 
- 
public 
OC\Files\Node\Root::getMTime()¶ Source: lib/private/Files/Node/Root.php#283 Returns: int 
- 
public 
OC\Files\Node\Root::getSize($includeMounts=true)¶ Source: Parameters: - $includeMounts (bool)
 
Returns: int
- 
public 
OC\Files\Node\Root::getEtag()¶ Source: lib/private/Files/Node/Root.php#298 Returns: string 
- 
public 
OC\Files\Node\Root::getPermissions()¶ Source: lib/private/Files/Node/Root.php#305 Returns: int 
- 
public 
OC\Files\Node\Root::isReadable()¶ Source: lib/private/Files/Node/Root.php#312 Returns: bool 
- 
public 
OC\Files\Node\Root::isUpdateable()¶ Source: lib/private/Files/Node/Root.php#319 Returns: bool 
- 
public 
OC\Files\Node\Root::isDeletable()¶ Source: lib/private/Files/Node/Root.php#326 Returns: bool 
Source: lib/private/Files/Node/Root.php#333 Returns: bool 
- 
public 
OC\Files\Node\Root::getParent()¶ Source: lib/private/Files/Node/Root.php#341 Returns: \OC\Files\Node\NodeThrows: \OCP\Files\NotFoundException
- 
public 
OC\Files\Node\Root::getName()¶ Source: lib/private/Files/Node/Root.php#348 Returns: string 
- 
public 
OC\Files\Node\Root::getUserFolder($userId)¶ - Returns a view to user’s files folder
Source: Parameters: - $userId (string) user ID
 
Returns: Throws: Throws: Throws: Throws:  
- 
public 
OC\Files\Node\Root::clearCache()¶ Source: lib/private/Files/Node/Root.php#396 
- 
public 
OC\Files\Node\Root::getUserMountCache()¶ Source: lib/private/Files/Node/Root.php#400