MountPoint

class OC\Files\Mount\MountPoint
Source:lib/private/Files/Mount/MountPoint.php#40
Implements:OCP\Files\Mount\IMountPoint

Properties

protected static property OC\Files\Mount\MountPoint::$storage
Source:lib/private/Files/Mount/MountPoint.php#44
Type:\OC\Files\Storage\Storage | null
protected static property OC\Files\Mount\MountPoint::$class
Source:lib/private/Files/Mount/MountPoint.php#45
protected static property OC\Files\Mount\MountPoint::$storageId
Source:lib/private/Files/Mount/MountPoint.php#46
protected static property OC\Files\Mount\MountPoint::$rootId
Source:lib/private/Files/Mount/MountPoint.php#47
protected static property OC\Files\Mount\MountPoint::$arguments
Configuration options for the storage backend
Source:lib/private/Files/Mount/MountPoint.php#54
Type:array
protected static property OC\Files\Mount\MountPoint::$mountPoint
Source:lib/private/Files/Mount/MountPoint.php#55
protected static property OC\Files\Mount\MountPoint::$mountOptions
Mount specific options
Source:lib/private/Files/Mount/MountPoint.php#62
Type:array
protected static property OC\Files\Mount\MountPoint::$mountId
Source:lib/private/Files/Mount/MountPoint.php#78
Type:int | null

Methods

public OC\Files\Mount\MountPoint::__construct($storage, $mountpoint, $arguments=null, $loader=null, $mountOptions=null, $mountId=null)
Source:

lib/private/Files/Mount/MountPoint.php#89

Parameters:
Throws:

\Exception

public OC\Files\Mount\MountPoint::getMountPoint()
get complete path to the mount point, relative to data/
Source:lib/private/Files/Mount/MountPoint.php#124
Returns:string
public OC\Files\Mount\MountPoint::setMountPoint($mountPoint)
Sets the mount point path, relative to data/
Source:

lib/private/Files/Mount/MountPoint.php#133

Parameters:
  • $mountPoint (string) new mount point
public OC\Files\Mount\MountPoint::getStorage()
Source:lib/private/Files/Mount/MountPoint.php#172
Returns:\OC\Files\Storage\Storage | null
public OC\Files\Mount\MountPoint::getStorageId()
Source:lib/private/Files/Mount/MountPoint.php#182
Returns:string
public OC\Files\Mount\MountPoint::getNumericStorageId()
Source:lib/private/Files/Mount/MountPoint.php#203
Returns:int
public OC\Files\Mount\MountPoint::getInternalPath($path)
Source:

lib/private/Files/Mount/MountPoint.php#211

Parameters:
  • $path (string)
Returns:

string

public OC\Files\Mount\MountPoint::wrapStorage($wrapper)
Source:

lib/private/Files/Mount/MountPoint.php#237

Parameters:
  • $wrapper (callable)
public OC\Files\Mount\MountPoint::getOption($name, $default)
Get a mount option
Source:

lib/private/Files/Mount/MountPoint.php#252

Parameters:
  • $name (string) Name of the mount option to get
  • $default (mixed) Default value for the mount option
Returns:

mixed

public OC\Files\Mount\MountPoint::getOptions()
Get all options for the mount
Source:lib/private/Files/Mount/MountPoint.php#261
Returns:array
public OC\Files\Mount\MountPoint::getStorageRootId()
Get the file id of the root of the storage
Source:lib/private/Files/Mount/MountPoint.php#270
Returns:int
public OC\Files\Mount\MountPoint::getMountId()
Source:lib/private/Files/Mount/MountPoint.php#277
public OC\Files\Mount\MountPoint::getMountType()
Source:lib/private/Files/Mount/MountPoint.php#281