| @@ 79-81 (lines=3) @@ | ||
| 76 | $entries = \OCA\Files_Trashbin\Helper::getTrashFiles($this->root . '/' . $this->getName(), $this->userId); |
|
| 77 | ||
| 78 | $children = array_map(function (FileInfo $entry) { |
|
| 79 | if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
| 80 | return new TrashFolderFolder($this->root.'/'.$this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 81 | } |
|
| 82 | return new TrashFolderFile($this->root.'/'.$this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 83 | }, $entries); |
|
| 84 | ||
| @@ 65-67 (lines=3) @@ | ||
| 62 | ||
| 63 | foreach ($entries as $entry) { |
|
| 64 | if ($entry->getName() === $name) { |
|
| 65 | if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
| 66 | return new TrashFolderFolder($this->root . '/' . $this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 67 | } |
|
| 68 | return new TrashFolderFile($this->root . '/' . $this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 69 | } |
|
| 70 | } |
|
| @@ 53-55 (lines=3) @@ | ||
| 50 | ||
| 51 | foreach ($entries as $entry) { |
|
| 52 | if ($entry->getName() === $name) { |
|
| 53 | if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
| 54 | return new TrashFolderFolder($this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 55 | } |
|
| 56 | return new TrashFolderFile($this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 57 | } |
|
| 58 | } |
|
| @@ 67-69 (lines=3) @@ | ||
| 64 | $entries = \OCA\Files_Trashbin\Helper::getTrashFiles($this->getName(), $this->userId); |
|
| 65 | ||
| 66 | $children = array_map(function (FileInfo $entry) { |
|
| 67 | if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
| 68 | return new TrashFolderFolder($this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 69 | } |
|
| 70 | return new TrashFolderFile($this->getName(), $this->userId, $entry, $this->getOriginalLocation()); |
|
| 71 | }, $entries); |
|
| 72 | ||