add an interface for the root folder so apps have an interface to deal with storage
fix comments and newline add newline
This commit is contained in:
parent
79c9fc98a6
commit
8e37214346
|
@ -16,6 +16,8 @@ use OCP\Files\NotPermittedException;
|
||||||
use OC\Hooks\Emitter;
|
use OC\Hooks\Emitter;
|
||||||
use OC\Hooks\PublicEmitter;
|
use OC\Hooks\PublicEmitter;
|
||||||
|
|
||||||
|
use OCP\Files\IRootFolder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Root
|
* Class Root
|
||||||
*
|
*
|
||||||
|
@ -35,7 +37,7 @@ use OC\Hooks\PublicEmitter;
|
||||||
*
|
*
|
||||||
* @package OC\Files\Node
|
* @package OC\Files\Node
|
||||||
*/
|
*/
|
||||||
class Root extends Folder implements Emitter {
|
class Root extends Folder implements IRootFolder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \OC\Files\Mount\Manager $mountManager
|
* @var \OC\Files\Mount\Manager $mountManager
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* ownCloud
|
||||||
|
*
|
||||||
|
* @author Bernhard Posselt
|
||||||
|
* @copyright 2014 Bernhard Posselt <dev@bernhard-posselt.com>
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 3 of the License, or any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public
|
||||||
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
namespace OCP\Files;
|
||||||
|
|
||||||
|
use OC\Hooks\Emitter;
|
||||||
|
|
||||||
|
|
||||||
|
interface IRootFolder extends Folder, Emitter {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue