summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-12 13:21:47 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-12 13:21:47 +0100
commit60bd9d512dd37c4eec684d1aef755e1c3e7d18f5 (patch)
tree3e3e90798e97d80cf3aec4de541c107fe9577d92 /lib/public
parenta6399f9ceffcf9865b8a2be155dc4f98bd2ee5dc (diff)
parent3699728a3a02dd17ea617a7e8f781c09e837f360 (diff)
downloadnextcloud-server-60bd9d512dd37c4eec684d1aef755e1c3e7d18f5.tar.gz
nextcloud-server-60bd9d512dd37c4eec684d1aef755e1c3e7d18f5.zip
Merge branch 'master' into backgroundjob-public
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files/storage.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php
index 194b42a6481..fe30f8f50af 100644
--- a/lib/public/files/storage.php
+++ b/lib/public/files/storage.php
@@ -315,4 +315,15 @@ interface Storage {
* @return string
*/
public function getETag($path);
+
+ /**
+ * Returns whether the storage is local, which means that files
+ * are stored on the local filesystem instead of remotely.
+ * Calling getLocalFile() for local storages should always
+ * return the local files, whereas for non-local storages
+ * it might return a temporary file.
+ *
+ * @return bool true if the files are stored locally, false otherwise
+ */
+ public function isLocal();
}