|
|
@@ -30,6 +30,7 @@ namespace OC\Connector\Sabre; |
|
|
|
use OC\Connector\Sabre\Exception\InvalidPath; |
|
|
|
use OC\Connector\Sabre\Exception\FileLocked; |
|
|
|
use OCP\Lock\LockedException; |
|
|
|
use Sabre\DAV\Exception\Locked; |
|
|
|
|
|
|
|
class Directory extends \OC\Connector\Sabre\Node |
|
|
|
implements \Sabre\DAV\ICollection, \Sabre\DAV\IQuota { |
|
|
@@ -191,7 +192,11 @@ class Directory extends \OC\Connector\Sabre\Node |
|
|
|
if (!is_null($this->dirContent)) { |
|
|
|
return $this->dirContent; |
|
|
|
} |
|
|
|
$folderContent = $this->fileView->getDirectoryContent($this->path); |
|
|
|
try { |
|
|
|
$folderContent = $this->fileView->getDirectoryContent($this->path); |
|
|
|
} catch (LockedException $e) { |
|
|
|
throw new Locked(); |
|
|
|
} |
|
|
|
|
|
|
|
$nodes = array(); |
|
|
|
foreach ($folderContent as $info) { |