Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fileaccess.php « command « private « lib - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5de00862facad2868bc7ed765e043dae35d7605a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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());
	}
}