Nextcloud PHP API (master)

IMountPoint

A storage mounted to folder on the filesystem

Tags
since
8.0.0

Table of Contents

Methods

getInternalPath()  : string
Get the path relative to the mountpoint
getMountId()  : int|null
Get the id of the configured mount
getMountPoint()  : string
get complete path to the mount point
getMountProvider()  : string
Get the class of the mount provider that this mount originates from
getMountType()  : string
Get the type of mount point, used to distinguish things like shares and external storage in the web interface
getNumericStorageId()  : int|null
Get the id of the storages
getOption()  : mixed
Get a mount option
getOptions()  : array<string|int, mixed>
Get all options for the mount
getStorage()  : IStorage|null
Get the storage that is mounted
getStorageId()  : string|null
Get the id of the storages
getStorageRootId()  : int
Get the file id of the root of the storage
setMountPoint()  : mixed
Set the mountpoint
wrapStorage()  : mixed
Apply a storage wrapper to the mounted storage

Methods

getInternalPath()

Get the path relative to the mountpoint

public getInternalPath(string $path) : string
Parameters
$path : string

absolute path to a file or folder

Tags
since
8.0.0
Return values
string

getMountId()

Get the id of the configured mount

public getMountId() : int|null
Tags
since
9.1.0
Return values
int|null

mount id or null if not applicable

getMountPoint()

get complete path to the mount point

public getMountPoint() : string
Tags
since
8.0.0
Return values
string

getMountProvider()

Get the class of the mount provider that this mount originates from

public getMountProvider() : string
Tags
since
24.0.0
Return values
string

getMountType()

Get the type of mount point, used to distinguish things like shares and external storage in the web interface

public getMountType() : string
Tags
since
12.0.0
Return values
string

getNumericStorageId()

Get the id of the storages

public getNumericStorageId() : int|null
Tags
since
9.1.0
Return values
int|null

getOption()

Get a mount option

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

Name of the mount option to get

$default : mixed

Default value for the mount option

Tags
since
8.0.0

getOptions()

Get all options for the mount

public getOptions() : array<string|int, mixed>
Tags
since
8.1.0
Return values
array<string|int, mixed>

getStorageId()

Get the id of the storages

public getStorageId() : string|null
Tags
since
8.0.0
Return values
string|null

getStorageRootId()

Get the file id of the root of the storage

public getStorageRootId() : int
Tags
since
9.1.0
Return values
int

setMountPoint()

Set the mountpoint

public setMountPoint(string $mountPoint) : mixed
Parameters
$mountPoint : string

new mount point

Tags
since
8.0.0

wrapStorage()

Apply a storage wrapper to the mounted storage

public wrapStorage(callable $wrapper) : mixed
Parameters
$wrapper : callable
Tags
since
8.0.0

        
On this page

Search results