Skip to content
Snippets Groups Projects
Commit 43c56fcd authored by Robin Appelman's avatar Robin Appelman Committed by Bjoern Schiessle
Browse files

Generate a unique name

parent e6f38508
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment