summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/icewind/streams/src/Url.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-03-17 13:54:26 +0100
committerRobin Appelman <icewind@owncloud.com>2016-03-21 14:24:00 +0100
commitdfbd85d7231d3440b2831c61a83ba8cb1512523e (patch)
treefbece739c4879b823e911f3d7a125c28bf791b0b /apps/files_external/3rdparty/icewind/streams/src/Url.php
parent90fb744e89572f5f9a41a82e9619bd3b2bcfa0a6 (diff)
downloadnextcloud-server-dfbd85d7231d3440b2831c61a83ba8cb1512523e.tar.gz
nextcloud-server-dfbd85d7231d3440b2831c61a83ba8cb1512523e.zip
update icewind/streams to 0.4.0 and icewind/smb to 1.0.7 in files_external
Diffstat (limited to 'apps/files_external/3rdparty/icewind/streams/src/Url.php')
-rw-r--r--apps/files_external/3rdparty/icewind/streams/src/Url.php64
1 files changed, 64 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/icewind/streams/src/Url.php b/apps/files_external/3rdparty/icewind/streams/src/Url.php
new file mode 100644
index 00000000000..d6822608a33
--- /dev/null
+++ b/apps/files_external/3rdparty/icewind/streams/src/Url.php
@@ -0,0 +1,64 @@
+<?php
+/**
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Licensed under the MIT license:
+ * http://opensource.org/licenses/MIT
+ */
+
+namespace Icewind\Streams;
+
+/**
+ * Interface for stream wrappers that implement url functions such as unlink, stat
+ */
+interface Url {
+ /**
+ * @param string $path
+ * @param array $options
+ * @return bool
+ */
+ public function dir_opendir($path, $options);
+
+ /**
+ * @param string $path
+ * @param string $mode
+ * @param int $options
+ * @param string &$opened_path
+ * @return bool
+ */
+ public function stream_open($path, $mode, $options, &$opened_path);
+
+ /**
+ * @param string $path
+ * @param int $mode
+ * @param int $options
+ * @return bool
+ */
+ public function mkdir($path, $mode, $options);
+
+ /**
+ * @param string $source
+ * @param string $target
+ * @return bool
+ */
+ public function rename($source, $target);
+
+ /**
+ * @param string $path
+ * @param int $options
+ * @return bool
+ */
+ public function rmdir($path, $options);
+
+ /**
+ * @param string
+ * @return bool
+ */
+ public function unlink($path);
+
+ /**
+ * @param string $path
+ * @param int $flags
+ * @return array
+ */
+ public function url_stat($path, $flags);
+}