Nextcloud PHP API (stable18)

IMountManager

Interface IMountManager

Manages all mounted storages in the system

Tags
since
8.2.0

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

clear()

Remove all registered mounts

public clear() : mixed
Tags
since
8.2.0
Return values
mixed

findByNumericId()

Find mounts by numeric storage id

public findByNumericId(int $id) : \OCP\Files\Mount\IMountPoint[]
Parameters
$id : int
Tags
since
8.2.0
Return values
\OCP\Files\Mount\IMountPoint[]

findByStorageId()

Find mounts by storage id

public findByStorageId(string $id) : \OCP\Files\Mount\IMountPoint[]
Parameters
$id : string
Tags
since
8.2.0
Return values
\OCP\Files\Mount\IMountPoint[]

findIn()

Find all mounts in $path

public findIn(string $path) : \OCP\Files\Mount\IMountPoint[]
Parameters
$path : string
Tags
since
8.2.0
Return values
\OCP\Files\Mount\IMountPoint[]

getAll()

public getAll() : \OCP\Files\Mount\IMountPoint[]
Tags
since
8.2.0
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
since
8.2.0
Return values
mixed

removeMount()

Remove a mount

public removeMount(string $mountPoint) : mixed
Parameters
$mountPoint : string
Tags
since
8.2.0
Return values
mixed

Search results