IMountManager
Interface IMountManager
Manages all mounted storages in the system
Tags
Table of Contents
- addMount() : mixed
- Add a new mount
- clear() : mixed
- Remove all registered mounts
- find() : IMountPoint|null
- Find the mount for $path
- findByNumericId() : \OCP\Files\Mount\IMountPoint[]
- Find mounts by numeric storage id
- findByStorageId() : \OCP\Files\Mount\IMountPoint[]
- Find mounts by storage id
- findIn() : \OCP\Files\Mount\IMountPoint[]
- Find all mounts in $path
- getAll() : \OCP\Files\Mount\IMountPoint[]
- moveMount() : mixed
- Change the location of a mount
- removeMount() : mixed
- Remove a mount
Methods
addMount()
Add a new mount
public
addMount(IMountPoint $mount) : mixed
Parameters
- $mount : IMountPoint
Tags
Return values
mixed —clear()
Remove all registered mounts
public
clear() : mixed
Tags
Return values
mixed —find()
Find the mount for $path
public
find(string $path) : IMountPoint|null
Parameters
- $path : string
Tags
Return values
IMountPoint|null —findByNumericId()
Find mounts by numeric storage id
public
findByNumericId(int $id) : \OCP\Files\Mount\IMountPoint[]
Parameters
- $id : int
Tags
Return values
\OCP\Files\Mount\IMountPoint[] —findByStorageId()
Find mounts by storage id
public
findByStorageId(string $id) : \OCP\Files\Mount\IMountPoint[]
Parameters
- $id : string
Tags
Return values
\OCP\Files\Mount\IMountPoint[] —findIn()
Find all mounts in $path
public
findIn(string $path) : \OCP\Files\Mount\IMountPoint[]
Parameters
- $path : string
Tags
Return values
\OCP\Files\Mount\IMountPoint[] —getAll()
public
getAll() : \OCP\Files\Mount\IMountPoint[]
Tags
Return values
\OCP\Files\Mount\IMountPoint[] —moveMount()
Change the location of a mount
public
moveMount(string $mountPoint, string $target) : mixed
Parameters
- $mountPoint : string
- $target : string
Tags
Return values
mixed —removeMount()
Remove a mount
public
removeMount(string $mountPoint) : mixed
Parameters
- $mountPoint : string