Expose creatable permissions trough fileinfo

remotes/origin/fix-10825
Robin Appelman 11 years ago
parent f46e49529f
commit ccb4475a8d
  1. 9
      lib/private/files/fileinfo.php
  2. 7
      lib/public/files/fileinfo.php

@ -183,6 +183,15 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
return $this->checkPermissions(\OCP\PERMISSION_UPDATE);
}
/**
* Check whether new files or folders can be created inside this folder
*
* @return bool
*/
public function isCreatable() {
return $this->checkPermissions(\OCP\PERMISSION_CREATE);
}
/**
* @return bool
*/

@ -135,6 +135,13 @@ interface FileInfo {
*/
public function isUpdateable();
/**
* Check whether new files or folders can be created inside this folder
*
* @return bool
*/
public function isCreatable();
/**
* Check if a file or folder can be deleted
*

Loading…
Cancel
Save