From 4b181f73ca32b0711c168b8641cae14ed2165a33 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 15 Jun 2015 15:41:52 +0200 Subject: [PATCH] phpdoc --- .../files/storage/polyfill/copydirectory.php | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/lib/private/files/storage/polyfill/copydirectory.php b/lib/private/files/storage/polyfill/copydirectory.php index 64b11690dc2..2c6df0f962c 100644 --- a/lib/private/files/storage/polyfill/copydirectory.php +++ b/lib/private/files/storage/polyfill/copydirectory.php @@ -9,16 +9,44 @@ namespace OC\Files\Storage\PolyFill; trait CopyDirectory { + /** + * Check if a path is a directory + * + * @param string $path + * @return bool + */ abstract public function is_dir($path); + /** + * Check if a file or folder exists + * + * @param string $path + * @return bool + */ abstract public function file_exists($path); - abstract public function buildPath($path); - + /** + * Delete a file or folder + * + * @param string $path + * @return bool + */ abstract public function unlink($path); + /** + * Open a directory handle for a folder + * + * @param string $path + * @return resource | bool + */ abstract public function opendir($path); + /** + * Create a new folder + * + * @param string $path + * @return bool + */ abstract public function mkdir($path); public function copy($source, $target) {