diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-13 22:29:57 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-13 22:29:57 +0200 |
commit | dcfbbf3db7761b88b8ca801454e90e738a98ec14 (patch) | |
tree | 0bf552446046fd65238f11ed5bd05e04a1d228ba /3rdparty/Sabre/DAV/FSExt | |
parent | 183cc22501b75ab8819971f70b88dbc010026ac1 (diff) | |
download | nextcloud-server-dcfbbf3db7761b88b8ca801454e90e738a98ec14.tar.gz nextcloud-server-dcfbbf3db7761b88b8ca801454e90e738a98ec14.zip |
Revert "Update SabreDAV to 1.7.1"
This reverts commit 183cc22501b75ab8819971f70b88dbc010026ac1.
Diffstat (limited to '3rdparty/Sabre/DAV/FSExt')
-rwxr-xr-x | 3rdparty/Sabre/DAV/FSExt/Directory.php | 5 | ||||
-rwxr-xr-x | 3rdparty/Sabre/DAV/FSExt/File.php | 32 |
2 files changed, 5 insertions, 32 deletions
diff --git a/3rdparty/Sabre/DAV/FSExt/Directory.php b/3rdparty/Sabre/DAV/FSExt/Directory.php index 70dfdc2c3b5..540057183b3 100755 --- a/3rdparty/Sabre/DAV/FSExt/Directory.php +++ b/3rdparty/Sabre/DAV/FSExt/Directory.php @@ -17,7 +17,7 @@ class Sabre_DAV_FSExt_Directory extends Sabre_DAV_FSExt_Node implements Sabre_DA * Data will either be supplied as a stream resource, or in certain cases * as a string. Keep in mind that you may have to support either. * - * After successful creation of the file, you may choose to return the ETag + * After succesful creation of the file, you may choose to return the ETag * of the new file here. * * The returned ETag must be surrounded by double-quotes (The quotes should @@ -64,9 +64,6 @@ class Sabre_DAV_FSExt_Directory extends Sabre_DAV_FSExt_Node implements Sabre_DA /** * Returns a specific child node, referenced by its name * - * This method must throw Sabre_DAV_Exception_NotFound if the node does not - * exist. - * * @param string $name * @throws Sabre_DAV_Exception_NotFound * @return Sabre_DAV_INode diff --git a/3rdparty/Sabre/DAV/FSExt/File.php b/3rdparty/Sabre/DAV/FSExt/File.php index 590fb808e61..b93ce5aee21 100755 --- a/3rdparty/Sabre/DAV/FSExt/File.php +++ b/3rdparty/Sabre/DAV/FSExt/File.php @@ -9,15 +9,15 @@ * @author Evert Pot (http://www.rooftopsolutions.nl/) * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License */ -class Sabre_DAV_FSExt_File extends Sabre_DAV_FSExt_Node implements Sabre_DAV_PartialUpdate_IFile { +class Sabre_DAV_FSExt_File extends Sabre_DAV_FSExt_Node implements Sabre_DAV_IFile { /** * Updates the data * * data is a readable stream resource. * - * @param resource|string $data - * @return string + * @param resource $data + * @return void */ public function put($data) { @@ -27,33 +27,9 @@ class Sabre_DAV_FSExt_File extends Sabre_DAV_FSExt_Node implements Sabre_DAV_Par } /** - * Updates the data at a given offset - * - * The data argument is a readable stream resource. - * The offset argument is a 0-based offset where the data should be - * written. - * - * param resource|string $data - * @return void - */ - public function putRange($data, $offset) { - - $f = fopen($this->path, 'c'); - fseek($f,$offset-1); - if (is_string($data)) { - fwrite($f, $data); - } else { - stream_copy_to_stream($data,$f); - } - fclose($f); - return '"' . md5_file($this->path) . '"'; - - } - - /** * Returns the data * - * @return resource + * @return string */ public function get() { |