diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-15 15:41:52 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-15 15:41:52 +0200 |
commit | 4b181f73ca32b0711c168b8641cae14ed2165a33 (patch) | |
tree | 47e3fe747f1ffaefa7f62e1f6953523e89e3bfac | |
parent | 2fb8a767051aaeef48f53a974568e9ef7f6a7efd (diff) | |
download | nextcloud-server-4b181f73ca32b0711c168b8641cae14ed2165a33.tar.gz nextcloud-server-4b181f73ca32b0711c168b8641cae14ed2165a33.zip |
phpdoc
-rw-r--r-- | lib/private/files/storage/polyfill/copydirectory.php | 32 |
1 files 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) { |