IMountProviderCollection

interface OCP\Files\Config\IMountProviderCollection
Manages the different mount providers
Implemented by:OC\Files\Config\MountProviderCollection
Source:lib/public/Files/Config/IMountProviderCollection.php#32

Methods

public OCP\Files\Config\IMountProviderCollection::getMountsForUser($user)
Get all configured mount points for the user
Source:

lib/public/Files/Config/IMountProviderCollection.php#40

Parameters:
Returns:

\OCP\Files\Mount\IMountPoint[]

Since:

8.0.0

public OCP\Files\Config\IMountProviderCollection::getHomeMountForUser($user)
Get the configured home mount for this user
Source:

lib/public/Files/Config/IMountProviderCollection.php#49

Parameters:
Returns:

\OCP\Files\Mount\IMountPoint

Since:

9.1.0

public OCP\Files\Config\IMountProviderCollection::registerProvider($provider)
Add a provider for mount points
Source:

lib/public/Files/Config/IMountProviderCollection.php#57

Parameters:
Since:

8.0.0

public OCP\Files\Config\IMountProviderCollection::registerMountFilter($filter)
Add a filter for mounts
Source:

lib/public/Files/Config/IMountProviderCollection.php#65

Parameters:
  • $filter (callable) (IMountPoint $mountPoint, IUser $user) => boolean
Since:

14.0.0

public OCP\Files\Config\IMountProviderCollection::registerHomeProvider($provider)
Add a provider for home mount points
Source:

lib/public/Files/Config/IMountProviderCollection.php#73

Parameters:
Since:

9.1.0

public OCP\Files\Config\IMountProviderCollection::getMountCache()
Get the mount cache which can be used to search for mounts without setting up the filesystem
Source:lib/public/Files/Config/IMountProviderCollection.php#81
Returns:\OCP\Files\Config\IUserMountCache
Since:9.0.0
public OCP\Files\Config\IMountProviderCollection::getRootMounts()
Get all root mountpoints
Source:lib/public/Files/Config/IMountProviderCollection.php#89
Returns:\OCP\Files\Mount\IMountPoint[]
Since:20.0.0