\OCP\Files\MountIMountManager

Interface IMountManager

Manages all mounted storages in the system

Summary

Methods
Constants
addMount()
removeMount()
moveMount()
find()
findIn()
clear()
findByStorageId()
getAll()
findByNumericId()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

removeMount()

removeMount(string  $mountPoint) 

Remove a mount

Parameters

string $mountPoint

moveMount()

moveMount(string  $mountPoint, string  $target) 

Change the location of a mount

Parameters

string $mountPoint
string $target

find()

find(string  $path) : \OCP\Files\Mount\IMountPoint

Find the mount for $path

Parameters

string $path

Returns

\OCP\Files\Mount\IMountPoint

findIn()

findIn(string  $path) : array<mixed,\OCP\Files\Mount\IMountPoint>

Find all mounts in $path

Parameters

string $path

Returns

array<mixed,\OCP\Files\Mount\IMountPoint>

clear()

clear() 

Remove all registered mounts

findByStorageId()

findByStorageId(string  $id) : array<mixed,\OCP\Files\Mount\IMountPoint>

Find mounts by storage id

Parameters

string $id

Returns

array<mixed,\OCP\Files\Mount\IMountPoint>

findByNumericId()

findByNumericId(integer  $id) : array<mixed,\OCP\Files\Mount\IMountPoint>

Find mounts by numeric storage id

Parameters

integer $id

Returns

array<mixed,\OCP\Files\Mount\IMountPoint>