\OCP\Files\MountIMountPoint

A storage mounted to folder on the filesystem

Summary

Methods
Constants
getMountPoint()
setMountPoint()
getStorage()
getStorageId()
getInternalPath()
wrapStorage()
getOption()
getOptions()
getStorageRootId()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getMountPoint()

getMountPoint() : string

get complete path to the mount point

Returns

string

setMountPoint()

setMountPoint(string  $mountPoint) 

Set the mountpoint

Parameters

string $mountPoint

new mount point

getStorage()

getStorage() : \OC\Files\Storage\Storage

Get the storage that is mounted

Returns

\OC\Files\Storage\Storage

getStorageId()

getStorageId() : string

Get the id of the storages

Returns

string

getInternalPath()

getInternalPath(string  $path) : string

Get the path relative to the mountpoint

Parameters

string $path

absolute path to a file or folder

Returns

string

wrapStorage()

wrapStorage(callable  $wrapper) 

Apply a storage wrapper to the mounted storage

Parameters

callable $wrapper

getOption()

getOption(string  $name, mixed  $default) : mixed

Get a mount option

Parameters

string $name

Name of the mount option to get

mixed $default

Default value for the mount option

Returns

mixed

getOptions()

getOptions() : array

Get all options for the mount

Returns

array

getStorageRootId()

getStorageRootId() : integer

Get the file id of the root of the storage

Returns

integer