nextcloud/lib/private/Files/Storage/Storage.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1,020 B
PHP
Raw Normal View History

2010-05-08 15:32:20 -04:00
<?php
2010-05-08 15:32:20 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2012-09-07 12:30:48 -04:00
*/
2012-09-07 12:30:48 -04:00
namespace OC\Files\Storage;
use OCP\Files\Storage\IStorage;
2010-05-08 15:32:20 -04:00
/**
* Provide a common interface to all different storage options
*
* All paths passed to the storage are relative to the storage and should NOT have a leading slash.
2010-05-08 15:32:20 -04:00
*/
interface Storage extends IStorage {
/**
* @return \OC\Files\Cache\Storage
*/
public function getStorageCache();
/**
* @param string $path
* @return array|null
*/
public function getMetaData($path);
/**
* Get the contents of a directory with metadata
*
* @param string $directory
* @return \Traversable an iterator, containing file metadata
*
* The metadata array will contain the following fields
*
* - name
* - mimetype
* - mtime
* - size
* - etag
* - storage_mtime
* - permissions
*/
public function getDirectoryContent($directory): \Traversable;
2010-05-08 15:32:20 -04:00
}