use \OCP\Files\Config\IMountProviderFactory; use \OCP\Files\Config\IMountProvider; $mountManager = \OC\Files\Filesystem::getMountManager();
$storage = $mountManager->getStorage('user:/documents/');This example shows how to get the storage instance for a given path using the mount manager. The `getStorage` method takes in a path and returns the storage associated with it. This method is a part of the ownCloud library.