summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-24 03:04:33 -0800
committerVincent Petry <pvince81@owncloud.com>2013-11-24 03:04:33 -0800
commitaef34618de995316d60d699cbb9c6fb697658d12 (patch)
tree4c36938525d434167b92eee494dc16040585c2ab /apps
parentba0e09adce14b6ccd36eb93b475f5c4400701587 (diff)
parentc62cce826994291c528e7cc90da5be9fc94ebaf2 (diff)
downloadnextcloud-server-aef34618de995316d60d699cbb9c6fb697658d12.tar.gz
nextcloud-server-aef34618de995316d60d699cbb9c6fb697658d12.zip
Merge pull request #5995 from owncloud/extstorage-isreadablefix
Return plausible isReadable() default impl for ext storage
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/amazons3.php8
-rwxr-xr-xapps/files_external/lib/dropbox.php8
-rw-r--r--apps/files_external/lib/google.php4
-rw-r--r--apps/files_external/lib/sftp.php8
-rw-r--r--apps/files_external/lib/streamwrapper.php8
-rw-r--r--apps/files_external/lib/swift.php8
-rw-r--r--apps/files_external/lib/webdav.php8
7 files changed, 0 insertions, 52 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index c08a266b48c..9a682fb2d48 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -300,14 +300,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
return false;
}
- public function isReadable($path) {
- return true;
- }
-
- public function isUpdatable($path) {
- return true;
- }
-
public function unlink($path) {
$path = $this->normalizePath($path);
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index b6deab6e5a7..6e464f4e287 100755
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -146,14 +146,6 @@ class Dropbox extends \OC\Files\Storage\Common {
return false;
}
- public function isReadable($path) {
- return $this->file_exists($path);
- }
-
- public function isUpdatable($path) {
- return $this->file_exists($path);
- }
-
public function file_exists($path) {
if ($path == '' || $path == '/') {
return true;
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php
index b63b5885de1..426caf008ec 100644
--- a/apps/files_external/lib/google.php
+++ b/apps/files_external/lib/google.php
@@ -317,10 +317,6 @@ class Google extends \OC\Files\Storage\Common {
}
}
- public function isReadable($path) {
- return $this->file_exists($path);
- }
-
public function isUpdatable($path) {
$file = $this->getDriveFile($path);
if ($file) {
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php
index 7c5aed5aa06..bcc4c5eafd5 100644
--- a/apps/files_external/lib/sftp.php
+++ b/apps/files_external/lib/sftp.php
@@ -180,14 +180,6 @@ class SFTP extends \OC\Files\Storage\Common {
return false;
}
- public function isReadable($path) {
- return true;
- }
-
- public function isUpdatable($path) {
- return true;
- }
-
public function file_exists($path) {
try {
return $this->client->stat($this->absPath($path)) !== false;
diff --git a/apps/files_external/lib/streamwrapper.php b/apps/files_external/lib/streamwrapper.php
index 4a63dfb6e02..23c5f91a2f3 100644
--- a/apps/files_external/lib/streamwrapper.php
+++ b/apps/files_external/lib/streamwrapper.php
@@ -41,14 +41,6 @@ abstract class StreamWrapper extends Common {
return filetype($this->constructUrl($path));
}
- public function isReadable($path) {
- return true; //not properly supported
- }
-
- public function isUpdatable($path) {
- return true; //not properly supported
- }
-
public function file_exists($path) {
return file_exists($this->constructUrl($path));
}
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index bb650dacc7b..86938ef3bb9 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -268,14 +268,6 @@ class Swift extends \OC\Files\Storage\Common {
}
}
- public function isReadable($path) {
- return true;
- }
-
- public function isUpdatable($path) {
- return true;
- }
-
public function unlink($path) {
$path = $this->normalizePath($path);
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 5857c59dcfc..0837222e511 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -134,14 +134,6 @@ class DAV extends \OC\Files\Storage\Common{
}
}
- public function isReadable($path) {
- return true;//not properly supported
- }
-
- public function isUpdatable($path) {
- return true;//not properly supported
- }
-
public function file_exists($path) {
$this->init();
$path=$this->cleanPath($path);