We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f08c6c commit aae231dCopy full SHA for aae231d
apps/files_external/lib/smb.php
@@ -361,6 +361,19 @@ public function isReadable($path) {
361
}
362
363
public function isUpdatable($path) {
364
+ try {
365
+ $info = $this->getFileInfo($path);
366
+ // following windows behaviour for read-only folders: they can be written into
367
+ // (https://support.microsoft.com/en-us/kb/326549 - "cause" section)
368
+ return !$info->isHidden() && (!$info->isReadOnly() || $this->is_dir($path));
369
+ } catch (NotFoundException $e) {
370
+ return false;
371
+ } catch (ForbiddenException $e) {
372
373
+ }
374
375
+
376
+ public function isDeletable($path) {
377
try {
378
$info = $this->getFileInfo($path);
379
return !$info->isHidden() && !$info->isReadOnly();
0 commit comments