IMountManager

interface OCP\Files\Mount\IMountManager
Interface IMountManager
Manages all mounted storages in the system
Implemented by:OC\Files\Mount\Manager
Source:lib/public/Files/Mount/IMountManager.php#36

Methods

public OCP\Files\Mount\IMountManager::addMount($mount)
Add a new mount
Source:

lib/public/Files/Mount/IMountManager.php#44

Parameters:
Since:

8.2.0

public OCP\Files\Mount\IMountManager::removeMount($mountPoint)
Remove a mount
Source:

lib/public/Files/Mount/IMountManager.php#52

Parameters:
  • $mountPoint (string)
Since:

8.2.0

public OCP\Files\Mount\IMountManager::moveMount($mountPoint, $target)
Change the location of a mount
Source:

lib/public/Files/Mount/IMountManager.php#61

Parameters:
  • $mountPoint (string)
  • $target (string)
Since:

8.2.0

public OCP\Files\Mount\IMountManager::find($path)
Find the mount for $path
Source:

lib/public/Files/Mount/IMountManager.php#70

Parameters:
  • $path (string)
Returns:

\OCP\Files\Mount\IMountPoint | null

Since:

8.2.0

public OCP\Files\Mount\IMountManager::findIn($path)
Find all mounts in $path
Source:

lib/public/Files/Mount/IMountManager.php#79

Parameters:
  • $path (string)
Returns:

\OCP\Files\Mount\IMountPoint[]

Since:

8.2.0

public OCP\Files\Mount\IMountManager::clear()
Remove all registered mounts
Source:lib/public/Files/Mount/IMountManager.php#86
Since:8.2.0
public OCP\Files\Mount\IMountManager::findByStorageId($id)
Find mounts by storage id
Source:

lib/public/Files/Mount/IMountManager.php#95

Parameters:
  • $id (string)
Returns:

\OCP\Files\Mount\IMountPoint[]

Since:

8.2.0

public OCP\Files\Mount\IMountManager::getAll()
Source:lib/public/Files/Mount/IMountManager.php#101
Returns:\OCP\Files\Mount\IMountPoint[]
Since:8.2.0
public OCP\Files\Mount\IMountManager::findByNumericId($id)
Find mounts by numeric storage id
Source:

lib/public/Files/Mount/IMountManager.php#110

Parameters:
  • $id (int)
Returns:

\OCP\Files\Mount\IMountPoint[]

Since:

8.2.0