diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-03-01 02:42:40 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-03-01 02:44:05 +0400 |
commit | e76e4e75407cc672bf342f13bbd77392a93c1623 (patch) | |
tree | 4380736971ed6f68a32fe58de6aae7b199723338 /apps | |
parent | b23b5aae7fba9467fd0e6b6137268c894ea6f8e8 (diff) |
add touch() to all storage backands, and make parameter optional
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index 3067d4d34c0..845659588ef 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -505,7 +505,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); + } + } } ?> |