nextcloud/lib/private/command/fileaccess.php

19 lines
400 B
PHP
Raw Normal View History

2015-02-23 17:26:12 +03:00
<?php
/**
* Copyright (c) 2015 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OC\Command;
use OCP\IUser;
trait FileAccess {
protected function getUserFolder(IUser $user) {
\OC_Util::setupFS($user->getUID());
return \OC::$server->getUserFolder($user->getUID());
}
}