Generate a unique name

This commit is contained in:
Robin Appelman 2014-06-04 17:19:49 +02:00 committed by Bjoern Schiessle
parent e6f3850890
commit 43c56fcd07
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ $externalManager = new \OCA\Files_Sharing\External\Manager(
\OC::$server->getUserSession()
);
$name = OCP\Files::buildNotExistingFileName('/', $name);
$mount = $externalManager->addShare($remote, $token, $password, $name, $owner);
/**
* @var \OCA\Files_Sharing\External\Storage $storage