summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-30 10:58:03 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-30 10:58:03 +0200
commit92c02e67973cf3e4e2615eae5a280674df43e084 (patch)
treec437d890f2274b78d61832c8706d19754ca19cc1 /lib
parente3dee633393514402bc828e90b493d5168fdf837 (diff)
downloadnextcloud-server-92c02e67973cf3e4e2615eae5a280674df43e084.tar.gz
nextcloud-server-92c02e67973cf3e4e2615eae5a280674df43e084.zip
remove commented code
Diffstat (limited to 'lib')
-rw-r--r--lib/connector/sabre/directory.php56
1 files changed, 0 insertions, 56 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php
index 1e50d4cc7da..e36ac84652c 100644
--- a/lib/connector/sabre/directory.php
+++ b/lib/connector/sabre/directory.php
@@ -57,62 +57,6 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
$path = $this->path . '/' . $name;
$node = new OC_Connector_Sabre_File($path);
return $node->put($data);
-
-// if (isset($_SERVER['HTTP_OC_CHUNKED'])) {
-// $info = OC_FileChunking::decodeName($name);
-// if (empty($info)) {
-// throw new Sabre_DAV_Exception_NotImplemented();
-// }
-// $chunk_handler = new OC_FileChunking($info);
-// $chunk_handler->store($info['index'], $data);
-// if ($chunk_handler->isComplete()) {
-// $newPath = $this->path . '/' . $info['name'];
-// $chunk_handler->file_assemble($newPath);
-// return OC_Connector_Sabre_Node::getETagPropertyForPath($newPath);
-// }
-// } else {
-// $newPath = $this->path . '/' . $name;
-//
-// // mark file as partial while uploading (ignored by the scanner)
-// $partpath = $newPath . '.part';
-//
-// \OC\Files\Filesystem::file_put_contents($partpath, $data);
-//
-// //detect aborted upload
-// if (isset ($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT' ) {
-// if (isset($_SERVER['CONTENT_LENGTH'])) {
-// $expected = $_SERVER['CONTENT_LENGTH'];
-// $actual = \OC\Files\Filesystem::filesize($partpath);
-// if ($actual != $expected) {
-// \OC\Files\Filesystem::unlink($partpath);
-// throw new Sabre_DAV_Exception_BadRequest(
-// 'expected filesize ' . $expected . ' got ' . $actual);
-// }
-// }
-// }
-//
-// // rename to correct path
-// $renameOkay = \OC\Files\Filesystem::rename($partpath, $newPath);
-// $fileExists = \OC\Files\Filesystem::file_exists($newPath);
-// if ($renameOkay === false || $fileExists === false) {
-// \OC_Log::write('webdav', '\OC\Files\Filesystem::rename() failed', \OC_Log::ERROR);
-// \OC\Files\Filesystem::unlink($partpath);
-// throw new Sabre_DAV_Exception();
-// }
-//
-// // allow sync clients to send the mtime along in a header
-// $mtime = OC_Request::hasModificationTime();
-// if ($mtime !== false) {
-// if(\OC\Files\Filesystem::touch($newPath, $mtime)) {
-// header('X-OC-MTime: accepted');
-// }
-// }
-//
-// return OC_Connector_Sabre_Node::getETagPropertyForPath($newPath);
-// }
-//
-// return null;
-//>>>>>>> master
}
/**