2016-08-24 06:03:22 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-08-24 06:03:22 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Files\SimpleFS;
|
|
|
|
|
|
|
|
|
|
use OCP\Files\NotFoundException;
|
2016-10-05 17:46:21 -04:00
|
|
|
use OCP\Files\NotPermittedException;
|
2016-08-24 06:03:22 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface ISimpleRoot
|
|
|
|
|
*
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-08-24 06:03:22 -04:00
|
|
|
*/
|
|
|
|
|
interface ISimpleRoot {
|
|
|
|
|
/**
|
|
|
|
|
* Get the folder with name $name
|
|
|
|
|
*
|
|
|
|
|
* @throws NotFoundException
|
2016-10-05 17:46:21 -04:00
|
|
|
* @throws \RuntimeException
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-08-24 06:03:22 -04:00
|
|
|
*/
|
2018-05-08 08:42:48 -04:00
|
|
|
public function getFolder(string $name): ISimpleFolder;
|
2016-08-24 06:03:22 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get all the Folders
|
|
|
|
|
*
|
|
|
|
|
* @return ISimpleFolder[]
|
2016-10-05 17:46:21 -04:00
|
|
|
* @throws NotFoundException
|
|
|
|
|
* @throws \RuntimeException
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-08-24 06:03:22 -04:00
|
|
|
*/
|
2018-05-08 08:42:48 -04:00
|
|
|
public function getDirectoryListing(): array;
|
2016-08-24 06:03:22 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new folder named $name
|
|
|
|
|
*
|
2016-10-05 17:46:21 -04:00
|
|
|
* @throws NotPermittedException
|
|
|
|
|
* @throws \RuntimeException
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-08-24 06:03:22 -04:00
|
|
|
*/
|
2018-05-08 08:42:48 -04:00
|
|
|
public function newFolder(string $name): ISimpleFolder;
|
2016-08-24 06:03:22 -04:00
|
|
|
}
|