aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-03-21 14:24:22 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-03-21 14:29:35 +0100
commit8eb57dd835158d05b9a1f8f38e1a1af85023e6dd (patch)
tree158e798f039ac76214f35fc9ff3c472381f863b3 /lib/public/Files.php
parentc8340ace5c22b3a3cf2132b2efbe91104aab04e9 (diff)
downloadnextcloud-server-8eb57dd835158d05b9a1f8f38e1a1af85023e6dd.tar.gz
nextcloud-server-8eb57dd835158d05b9a1f8f38e1a1af85023e6dd.zip
Deprecate OCP\Files
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/Files.php')
-rw-r--r--lib/public/Files.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Files.php b/lib/public/Files.php
index 7b1b1921ed9..1cfd73fb288 100644
--- a/lib/public/Files.php
+++ b/lib/public/Files.php
@@ -44,12 +44,14 @@ namespace OCP;
* This class provides access to the internal filesystem abstraction layer. Use
* this class exlusively if you want to access files
* @since 5.0.0
+ * @deprecated 14.0.0
*/
class Files {
/**
* Recusive deletion of folders
* @return bool
* @since 5.0.0
+ * @deprecated 14.0.0
*/
static public function rmdirr( $dir ) {
return \OC_Helper::rmdirr( $dir );
@@ -61,6 +63,7 @@ class Files {
* @return string
* does NOT work for ownClouds filesystem, use OC_FileSystem::getMimeType instead
* @since 5.0.0
+ * @deprecated 14.0.0
*/
static public function getMimeType( $path ) {
return \OC::$server->getMimeTypeDetector()->detect($path);
@@ -71,6 +74,7 @@ class Files {
* @param string $mimetype
* @return array
* @since 6.0.0
+ * @deprecated 14.0.0
*/
static public function searchByMime($mimetype) {
return \OC\Files\Filesystem::searchByMime($mimetype);
@@ -82,6 +86,7 @@ class Files {
* @param resource $target
* @return int the number of bytes copied
* @since 5.0.0
+ * @deprecated 14.0.0
*/
public static function streamCopy( $source, $target ) {
list($count, ) = \OC_Helper::streamCopy( $source, $target );
@@ -94,6 +99,7 @@ class Files {
* @param string $filename
* @return string
* @since 5.0.0
+ * @deprecated 14.0.0 use getNonExistingName of the OCP\Files\Folder object
*/
public static function buildNotExistingFileName($path, $filename) {
return \OC_Helper::buildNotExistingFileName($path, $filename);
@@ -105,6 +111,7 @@ class Files {
* @param string $app
* @return \OC\Files\View
* @since 5.0.0
+ * @deprecated 14.0.0 use IAppData instead
*/
public static function getStorage($app) {
return \OC_App::getStorage( $app );