summaryrefslogtreecommitdiffstats
path: root/3rdparty/Sabre/DAV/FS/Node.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-20 15:23:56 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-20 15:23:56 +0200
commite4154e68324fd9af4c7ba0b9abba3e50d5b5c56e (patch)
tree74371bd2efed92a05b2e0c0a00fb031baa58cace /3rdparty/Sabre/DAV/FS/Node.php
parentb3d7043f9cd4d252050570a4ae85f78f1ad662c2 (diff)
downloadnextcloud-server-e4154e68324fd9af4c7ba0b9abba3e50d5b5c56e.tar.gz
nextcloud-server-e4154e68324fd9af4c7ba0b9abba3e50d5b5c56e.zip
remove old files
Diffstat (limited to '3rdparty/Sabre/DAV/FS/Node.php')
-rw-r--r--3rdparty/Sabre/DAV/FS/Node.php80
1 files changed, 0 insertions, 80 deletions
diff --git a/3rdparty/Sabre/DAV/FS/Node.php b/3rdparty/Sabre/DAV/FS/Node.php
deleted file mode 100644
index 1283e9d0fdc..00000000000
--- a/3rdparty/Sabre/DAV/FS/Node.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/**
- * Base node-class
- *
- * The node class implements the method used by both the File and the Directory classes
- *
- * @package Sabre
- * @subpackage DAV
- * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
- * @author Evert Pot (http://www.rooftopsolutions.nl/)
- * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
- */
-abstract class Sabre_DAV_FS_Node implements Sabre_DAV_INode {
-
- /**
- * The path to the current node
- *
- * @var string
- */
- protected $path;
-
- /**
- * Sets up the node, expects a full path name
- *
- * @param string $path
- */
- public function __construct($path) {
-
- $this->path = $path;
-
- }
-
-
-
- /**
- * Returns the name of the node
- *
- * @return string
- */
- public function getName() {
-
- list(, $name) = Sabre_DAV_URLUtil::splitPath($this->path);
- return $name;
-
- }
-
- /**
- * Renames the node
- *
- * @param string $name The new name
- * @return void
- */
- public function setName($name) {
-
- list($parentPath, ) = Sabre_DAV_URLUtil::splitPath($this->path);
- list(, $newName) = Sabre_DAV_URLUtil::splitPath($name);
-
- $newPath = $parentPath . '/' . $newName;
- rename($this->path,$newPath);
-
- $this->path = $newPath;
-
- }
-
-
-
- /**
- * Returns the last modification time, as a unix timestamp
- *
- * @return int
- */
- public function getLastModified() {
-
- return filemtime($this->path);
-
- }
-
-}
-