aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/amazons3.php2
-rwxr-xr-xapps/files_external/lib/dropbox.php1
-rw-r--r--apps/files_external/lib/google.php2
-rw-r--r--apps/files_external/lib/swift.php2
-rw-r--r--apps/files_external/lib/webdav.php1
-rw-r--r--apps/files_sharing/lib/sharedstorage.php22
-rw-r--r--lib/files.php3
-rw-r--r--lib/files/filesystem.php4
-rw-r--r--lib/files/storage/common.php4
-rw-r--r--lib/files/storage/local.php3
-rw-r--r--lib/files/storage/storage.php1
-rw-r--r--lib/files/view.php4
-rw-r--r--lib/filesystem.php7
13 files changed, 1 insertions, 55 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index 832127d3e79..c3fa4651f64 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -115,12 +115,10 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$stat['size'] = $this->s3->get_bucket_filesize($this->bucket);
$stat['atime'] = time();
$stat['mtime'] = $stat['atime'];
- $stat['ctime'] = $stat['atime'];
} else if ($object = $this->getObject($path)) {
$stat['size'] = $object['Size'];
$stat['atime'] = time();
$stat['mtime'] = strtotime($object['LastModified']);
- $stat['ctime'] = $stat['mtime'];
}
if (isset($stat)) {
return $stat;
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index 0f7593162e4..0e82f80668f 100755
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -119,7 +119,6 @@ class Dropbox extends \OC\Files\Storage\Common {
$stat['size'] = $metaData['bytes'];
$stat['atime'] = time();
$stat['mtime'] = (isset($metaData['modified'])) ? strtotime($metaData['modified']) : time();
- $stat['ctime'] = $stat['mtime'];
return $stat;
}
return false;
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php
index 141fc619e35..7ee5b97f8be 100644
--- a/apps/files_external/lib/google.php
+++ b/apps/files_external/lib/google.php
@@ -257,14 +257,12 @@ class Google extends \OC\Files\Storage\Common {
$stat['size'] = $this->free_space($path);
$stat['atime'] = time();
$stat['mtime'] = time();
- $stat['ctime'] = time();
} else if ($entry = $this->getResource($path)) {
// NOTE: Native resources don't have a file size
$stat['size'] = $entry->getElementsByTagNameNS('http://schemas.google.com/g/2005', 'quotaBytesUsed')->item(0)->nodeValue;
// if (isset($atime = $entry->getElementsByTagNameNS('http://schemas.google.com/g/2005', 'lastViewed')->item(0)->nodeValue))
// $stat['atime'] = strtotime($entry->getElementsByTagNameNS('http://schemas.google.com/g/2005', 'lastViewed')->item(0)->nodeValue);
$stat['mtime'] = strtotime($entry->getElementsByTagName('updated')->item(0)->nodeValue);
- $stat['ctime'] = strtotime($entry->getElementsByTagName('published')->item(0)->nodeValue);
}
if (isset($stat)) {
return $stat;
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index 4b3f38166dc..c3578b0c23e 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -500,7 +500,6 @@ class SWIFT extends \OC\Files\Storage\Common{
return array(
'mtime'=>-1,
'size'=>$container->bytes_used,
- 'ctime'=>-1
);
}
@@ -518,7 +517,6 @@ class SWIFT extends \OC\Files\Storage\Common{
return array(
'mtime'=>$mtime,
'size'=>$obj->content_length,
- 'ctime'=>-1,
);
}
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 73231b6ad81..c9785f3eb11 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -256,7 +256,6 @@ class DAV extends \OC\Files\Storage\Common{
return array(
'mtime'=>strtotime($response['{DAV:}getlastmodified']),
'size'=>(int)isset($response['{DAV:}getcontentlength']) ? $response['{DAV:}getcontentlength'] : 0,
- 'ctime'=>-1,
);
}catch(\Exception $e) {
return array();
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index e12027a4f2b..521dfb69f2a 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -162,7 +162,6 @@ class Shared extends \OC\Files\Storage\Common {
if ($path == '' || $path == '/') {
$stat['size'] = $this->filesize($path);
$stat['mtime'] = $this->filemtime($path);
- $stat['ctime'] = $this->filectime($path);
return $stat;
} else if ($source = $this->getSourcePath($path)) {
list($storage, $internalPath)=\OC\Files\Filesystem::resolvePath($source);
@@ -233,27 +232,6 @@ class Shared extends \OC\Files\Storage\Common {
return false;
}
- public function filectime($path) {
- if ($path == '' || $path == '/') {
- $ctime = 0;
- if ($dh = $this->opendir($path)) {
- while (($filename = readdir($dh)) !== false) {
- $tempctime = $this->filectime($filename);
- if ($tempctime < $ctime) {
- $ctime = $tempctime;
- }
- }
- }
- return $ctime;
- } else {
- $source = $this->getSourcePath($path);
- if ($source) {
- list($storage, $internalPath)=\OC\Files\Filesystem::resolvePath($source);
- return $storage->filectime($internalPath);
- }
- }
- }
-
public function filemtime($path) {
if ($path == '' || $path == '/') {
$mtime = 0;
diff --git a/lib/files.php b/lib/files.php
index 29322cf2d06..28c8d0b449f 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -30,13 +30,12 @@ class OC_Files {
/**
* get the filesystem info
- * @param string path
+ * @param string $path
* @return array
*
* returns an associative array with the following keys:
* - size
* - mtime
- * - ctime
* - mimetype
* - encrypted
* - versioned
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index e4c269257c2..94e8a562564 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -478,10 +478,6 @@ class Filesystem {
return self::$defaultInstance->file_exists($path);
}
- static public function filectime($path) {
- return self::$defaultInstance->filectime($path);
- }
-
static public function filemtime($path) {
return self::$defaultInstance->filemtime($path);
}
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php
index 3886a041829..17405845554 100644
--- a/lib/files/storage/common.php
+++ b/lib/files/storage/common.php
@@ -74,10 +74,6 @@ abstract class Common extends \OC\Files\Storage\Storage {
return $permissions;
}
// abstract public function file_exists($path);
- public function filectime($path) {
- $stat = $this->stat($path);
- return $stat['ctime'];
- }
public function filemtime($path) {
$stat = $this->stat($path);
return $stat['mtime'];
diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php
index 66ae5542e36..ccd69e3971c 100644
--- a/lib/files/storage/local.php
+++ b/lib/files/storage/local.php
@@ -66,9 +66,6 @@ class Local extends \OC\Files\Storage\Common{
public function file_exists($path) {
return file_exists($this->datadir.$path);
}
- public function filectime($path) {
- return filectime($this->datadir.$path);
- }
public function filemtime($path) {
return filemtime($this->datadir.$path);
}
diff --git a/lib/files/storage/storage.php b/lib/files/storage/storage.php
index f149c61830c..941bc3b0779 100644
--- a/lib/files/storage/storage.php
+++ b/lib/files/storage/storage.php
@@ -29,7 +29,6 @@ abstract class Storage{
abstract public function isSharable($path);
abstract public function getPermissions($path);
abstract public function file_exists($path);
- abstract public function filectime($path);
abstract public function filemtime($path);
abstract public function file_get_contents($path);
abstract public function file_put_contents($path,$data);
diff --git a/lib/files/view.php b/lib/files/view.php
index bffeb434f28..58e3ee6f051 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -236,10 +236,6 @@ class View {
return $this->basicOperation('file_exists', $path);
}
- public function filectime($path) {
- return $this->basicOperation('filectime', $path);
- }
-
public function filemtime($path) {
return $this->basicOperation('filemtime', $path);
}
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 587eb50d9e0..9ce75aaf8ce 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -309,13 +309,6 @@ class OC_Filesystem {
/**
* @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem
*/
- static public function filectime($path) {
- return \OC\Files\Filesystem::filectime($path);
- }
-
- /**
- * @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem
- */
static public function filemtime($path) {
return \OC\Files\Filesystem::filemtime($path);
}