Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2012-02-10 14:30:38 +0400
committerKlaas Freitag <freitag@owncloud.com>2012-02-10 14:30:38 +0400
commit85853f9ec29be9a2ba92737de204da1469f72dd8 (patch)
tree754f80507e5c27cf102e6b18ced9e8a473eb069e /lib/filestorage
parent9379c3e1284d2d9250af4e5d406a7f6803309fad (diff)
- Added the ability to change a files mtime via webdavs propset.
- Added some minor debug help to fscache
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index 2c1f650cb9f..292d2a84e7d 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -65,6 +65,13 @@ class OC_Filestorage_Local extends OC_Filestorage{
public function filemtime($path){
return filemtime($this->datadir.$path);
}
+
+ public function setFileMtime($path, $mtime){
+ // sets the modification time of the file to the given value. If mtime is nil the current time is set.
+ // note that the access time of the file always changes to the current time.
+ return touch($this->datadir.$path, $mtime);
+ }
+
public function file_get_contents($path){
return file_get_contents($this->datadir.$path);
}