diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-18 15:39:35 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-18 15:39:35 +0100 |
commit | d18b9f6ea43b2a9b7bf9d2a71710edc67ec7f705 (patch) | |
tree | b67af1d1b3eea4cae9990359a8a2710c8365c5ba /apps/files/lib | |
parent | 92560c5b86cb88920b6e439bdf4b90f1d59e9b6c (diff) | |
download | nextcloud-server-d18b9f6ea43b2a9b7bf9d2a71710edc67ec7f705.tar.gz nextcloud-server-d18b9f6ea43b2a9b7bf9d2a71710edc67ec7f705.zip |
use a FileInfo object of the directory when generting the filelist
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/helper.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index 01fc65d76b7..ac8a2ad3200 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -112,26 +112,4 @@ class Helper } return $breadcrumb; } - - /** - * Returns the numeric permissions for the given directory. - * @param string $dir directory without trailing slash - * @return numeric permissions - */ - public static function getDirPermissions($dir){ - $permissions = \OCP\PERMISSION_READ; - if (\OC\Files\Filesystem::isCreatable($dir . '/')) { - $permissions |= \OCP\PERMISSION_CREATE; - } - if (\OC\Files\Filesystem::isUpdatable($dir . '/')) { - $permissions |= \OCP\PERMISSION_UPDATE; - } - if (\OC\Files\Filesystem::isDeletable($dir . '/')) { - $permissions |= \OCP\PERMISSION_DELETE; - } - if (\OC\Files\Filesystem::isSharable($dir . '/')) { - $permissions |= \OCP\PERMISSION_SHARE; - } - return $permissions; - } } |