| @@ 428-437 (lines=10) @@ | ||
| 425 | } |
|
| 426 | } |
|
| 427 | ||
| 428 | public function isReadable($path) { |
|
| 429 | try { |
|
| 430 | $info = $this->getFileInfo($path); |
|
| 431 | return !$info->isHidden(); |
|
| 432 | } catch (NotFoundException $e) { |
|
| 433 | return false; |
|
| 434 | } catch (ForbiddenException $e) { |
|
| 435 | return false; |
|
| 436 | } |
|
| 437 | } |
|
| 438 | ||
| 439 | public function isUpdatable($path) { |
|
| 440 | try { |
|
| @@ 439-450 (lines=12) @@ | ||
| 436 | } |
|
| 437 | } |
|
| 438 | ||
| 439 | public function isUpdatable($path) { |
|
| 440 | try { |
|
| 441 | $info = $this->getFileInfo($path); |
|
| 442 | // following windows behaviour for read-only folders: they can be written into |
|
| 443 | // (https://support.microsoft.com/en-us/kb/326549 - "cause" section) |
|
| 444 | return !$info->isHidden() && (!$info->isReadOnly() || $this->is_dir($path)); |
|
| 445 | } catch (NotFoundException $e) { |
|
| 446 | return false; |
|
| 447 | } catch (ForbiddenException $e) { |
|
| 448 | return false; |
|
| 449 | } |
|
| 450 | } |
|
| 451 | ||
| 452 | public function isDeletable($path) { |
|
| 453 | try { |
|
| @@ 452-461 (lines=10) @@ | ||
| 449 | } |
|
| 450 | } |
|
| 451 | ||
| 452 | public function isDeletable($path) { |
|
| 453 | try { |
|
| 454 | $info = $this->getFileInfo($path); |
|
| 455 | return !$info->isHidden() && !$info->isReadOnly(); |
|
| 456 | } catch (NotFoundException $e) { |
|
| 457 | return false; |
|
| 458 | } catch (ForbiddenException $e) { |
|
| 459 | return false; |
|
| 460 | } |
|
| 461 | } |
|
| 462 | ||
| 463 | /** |
|
| 464 | * check if smbclient is installed |
|