apps/files_external/lib/Lib/PersonalMount.php
/**
	 * Move the mount point to $target
	 *
	 * @param string $target the target mount point
	 * @return bool
	 */
Move the mount point to $target
@param string $target the target mount point
@return bool
Move the mount point to $target @param string $target the target mount point @return bool
public function moveMount($target) {
		$storage = $this->storagesService->getStorage($this->numericStorageId);
		$targetParts = explode('/', trim($target, '/'), 3);
		$storage->setMountPoint($targetParts[2]);
		$this->storagesService->updateStorage($storage);
		$this->setMountPoint($target);
		return true;
	}
public function moveMount ( $ target ) { $ storage = $ this -> storagesService -> getStorage ( $ this -> numericStorageId ) ; $ targetParts = explode ( '/' , trim ( $ target , '/' ) , 3 ) ; $ storage -> setMountPoint ( $ targetParts [ 2 ] ) ; $ this -> storagesService -> updateStorage ( $ storage ) ; $ this -> setMountPoint ( $ target ) ; return true ; }
Move the mount point to $target
 @param string $target the target mount point
 @return bool
Move the mount point to $target @param string $target the target mount point @return bool
// remove "/$user/files" prefix