diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-02 17:37:16 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-02 17:37:16 +0200 |
commit | c92c577b5e05ea1d932c6739b87fea8beea21e1b (patch) | |
tree | e194232ae8efd9f97fca8fee61cc9b2df314dac2 /lib/public/files | |
parent | 49d9631eee1616b9ae2846886c3d428236c5b81a (diff) | |
download | nextcloud-server-c92c577b5e05ea1d932c6739b87fea8beea21e1b.tar.gz nextcloud-server-c92c577b5e05ea1d932c6739b87fea8beea21e1b.zip |
- Introduce isShared() and isMounted() on FileInfo class
- Reuse these methods on determineIcon()
- Generate permission string for the desktop client
- expose {http://owncloud.org/ns}permissions as additional WebDAV property containing the permission string
Diffstat (limited to 'lib/public/files')
-rw-r--r-- | lib/public/files/fileinfo.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/files/fileinfo.php b/lib/public/files/fileinfo.php index 37162e09336..f934637156e 100644 --- a/lib/public/files/fileinfo.php +++ b/lib/public/files/fileinfo.php @@ -135,4 +135,18 @@ interface FileInfo { * @return bool */ public function isShareable(); + + /** + * Check if a file or folder is shared + * + * @return bool + */ + public function isShared(); + + /** + * Check if a file or folder is mounted + * + * @return bool + */ + public function isMounted(); } |