Nextcloud PHP API (master)

IMountManager

Interface IMountManager

Manages all mounted storages in the system

Tags
since
8.2.0

Table of Contents

Methods

addMount()  : mixed
Add a new mount
clear()  : mixed
Remove all registered mounts
find()  : IMountPoint
Find the mount for $path
findByNumericId()  : array<string|int, IMountPoint>
Find mounts by numeric storage id
findByStorageId()  : array<string|int, IMountPoint>
Find mounts by storage id
findIn()  : array<string|int, IMountPoint>
Find all mounts in $path
getAll()  : array<string|int, IMountPoint>
getMountFromMountInfo()  : IMountPoint|null
Return the mount matching a cached mount info (or mount file info)
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

findByNumericId()

Find mounts by numeric storage id

public findByNumericId(int $id) : array<string|int, IMountPoint>
Parameters
$id : int
Tags
since
8.2.0
Return values
array<string|int, IMountPoint>

findByStorageId()

Find mounts by storage id

public findByStorageId(string $id) : array<string|int, IMountPoint>
Parameters
$id : string
Tags
since
8.2.0
Return values
array<string|int, IMountPoint>

findIn()

Find all mounts in $path

public findIn(string $path) : array<string|int, IMountPoint>
Parameters
$path : string
Tags
since
8.2.0
Return values
array<string|int, 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

removeMount()

Remove a mount

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

        
On this page

Search results