mirror of
https://github.com/nextcloud/server.git
synced 2026-02-10 22:34:26 -05:00
22 lines
471 B
PHP
22 lines
471 B
PHP
<?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 setupFS(IUser $user){
|
|
\OC_Util::setupFS($user->getUID());
|
|
}
|
|
|
|
protected function getUserFolder(IUser $user) {
|
|
$this->setupFS($user);
|
|
return \OC::$server->getUserFolder($user->getUID());
|
|
}
|
|
}
|