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
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-01 02:42:40 +0400
committerKlaas Freitag <freitag@owncloud.com>2012-03-13 16:03:14 +0400
commit252877865104c4d455249ade5ae7de737d69a2f3 (patch)
treef739997c017852c566c360c8b4134c29b1822f83 /apps
parentf89f3701dfd6c3e240b7cf792e3c151927ec9724 (diff)
add touch() to all storage backands, and make parameter optional
Conflicts: lib/filestorage.php lib/filestorage/common.php lib/filestorage/commontest.php lib/filestorage/local.php lib/filesystemview.php
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/sharedstorage.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index b0eaeecf723..bbb245a82ff 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -569,7 +569,13 @@ class OC_Filestorage_Shared extends OC_Filestorage {
return $storage->getLocalFile($this->getInternalPath($source));
}
}
-
+ public function touch($path, $mtime=null){
+ $source = $this->getSource($path);
+ if ($source) {
+ $storage = OC_Filesystem::getStorage($source);
+ return $storage->touch($this->getInternalPath($source),$time);
+ }
+ }
}
-?> \ No newline at end of file
+?>