diff --git a/src/RemarkableFS.php b/src/RemarkableFS.php index 3e9d0b9..14483b2 100644 --- a/src/RemarkableFS.php +++ b/src/RemarkableFS.php @@ -162,7 +162,12 @@ public function typeToIcon($type) */ protected function calcPath($id) { - if (!isset($this->index[$id])) throw new \Exception("Unknown ID $id. Inconsitent meta data"); + if($id == "trash") + return ""; + + if (!isset($this->index[$id])) + throw new \Exception("Unknown ID $id. Inconsitent meta data"); + $item =& $this->index[$id]; // path already set? @@ -178,4 +183,4 @@ protected function calcPath($id) return $item['Path']; } -} \ No newline at end of file +}