summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-11-08 22:26:03 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-08 22:26:03 +0100
commitca6c500799ec13c433ca74b8caa80875084c4943 (patch)
tree00fd4252dcad5c47cc4cbd2b27acb0bdeb410915 /apps
parentec015a2e6806be90516e5cba009823050d98bcb0 (diff)
downloadnextcloud-server-ca6c500799ec13c433ca74b8caa80875084c4943.tar.gz
nextcloud-server-ca6c500799ec13c433ca74b8caa80875084c4943.zip
remove OC_Filesystem::fileatime
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/sharedstorage.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 5ab976aaf4f..431b6a1adb8 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -180,7 +180,6 @@ class OC_Filestorage_Shared extends OC_Filestorage {
$stat["gid"] = "";
$stat["rdev"] = "";
$stat["size"] = $this->filesize($path);
- $stat["atime"] = $this->fileatime($path);
$stat["mtime"] = $this->filemtime($path);
$stat["ctime"] = $this->filectime($path);
$stat["blksize"] = "";
@@ -354,27 +353,6 @@ class OC_Filestorage_Shared extends OC_Filestorage {
}
}
- public function fileatime($path) {
- if ($path == "" || $path == "/") {
- $atime = 0;
- if ($dh = $this->opendir($path)) {
- while (($filename = readdir($dh)) !== false) {
- $tempatime = $this->fileatime($filename);
- if ($tempatime > $atime) {
- $atime = $tempatime;
- }
- }
- return $atime;
- }
- } else {
- $source = $this->getSource($path);
- if ($source) {
- $storage = OC_Filesystem::getStorage($source);
- return $storage->fileatime($this->getInternalPath($source));
- }
- }
- }
-
public function file_get_contents($path) {
$source = $this->getSource($path);
if ($source) {