summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/storage/polyfill/copydirectory.php32
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) {