diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-15 16:43:24 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-15 16:43:24 +0200 |
commit | 449760f665a2416875458cbb3f34387df038b08a (patch) | |
tree | 3ad398644dee204c3b7bdc16c95effcc30d094b1 /lib/filestorage/common.php | |
parent | 6ca87656befb4ae30bd17547f34e6c3263c83c64 (diff) | |
download | nextcloud-server-449760f665a2416875458cbb3f34387df038b08a.tar.gz nextcloud-server-449760f665a2416875458cbb3f34387df038b08a.zip |
add hasUpdated to oc_filestorage
Diffstat (limited to 'lib/filestorage/common.php')
-rw-r--r-- | lib/filestorage/common.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php index f0bfc064cb5..f2a5775fd19 100644 --- a/lib/filestorage/common.php +++ b/lib/filestorage/common.php @@ -156,4 +156,13 @@ abstract class OC_Filestorage_Common extends OC_Filestorage { } return $files; } + + /** + * check if a file or folder has been updated since $time + * @param int $time + * @return bool + */ + public function hasUpdated($path,$time){ + return $this->filemtime($path)>$time; + } } |