diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-11 14:49:39 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-11 14:49:39 +0100 |
commit | c442a03d3a1a7c15d3954e5fd8c48898ee768951 (patch) | |
tree | eebad7c54b291c7e5fc9a102839f3ef162513a31 /lib/public | |
parent | 72f134cfce05eb089a6d8271e73d6eb95cbe94a4 (diff) | |
parent | 788c8540aa6aac50795c37b088eeaa561d44b86c (diff) | |
download | nextcloud-server-c442a03d3a1a7c15d3954e5fd8c48898ee768951.tar.gz nextcloud-server-c442a03d3a1a7c15d3954e5fd8c48898ee768951.zip |
Merge pull request #7075 from owncloud/quota-storagexsendfile
Added isLocal() method to storage, used for xsendfile
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/files/storage.php | 11 |
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(); } |