@@ 98-106 (lines=9) @@ | ||
95 | /** |
|
96 | * {@inheritDoc} |
|
97 | */ |
|
98 | public function getContent(/*# bool */ $stream = false) |
|
99 | { |
|
100 | if ($this->exists() && $this->isFilesystemReadable($this->full)) { |
|
101 | $res = $this->getDriver()->getContent($this->path, $stream); |
|
102 | $this->resetError(); |
|
103 | return $res; |
|
104 | } |
|
105 | return null; |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * {@inheritDoc} |
|
@@ 201-213 (lines=13) @@ | ||
198 | /** |
|
199 | * {@inheritDoc} |
|
200 | */ |
|
201 | public function delete()/*# : bool */ |
|
202 | { |
|
203 | if ($this->exists()) { |
|
204 | if (!$this->isFilesystemDeletable($this->full)) { |
|
205 | return false; |
|
206 | } |
|
207 | ||
208 | $res = $this->getDriver()->delete($this->path); |
|
209 | $this->resetError(); |
|
210 | return $res; |
|
211 | } |
|
212 | return true; |
|
213 | } |
|
214 | ||
215 | /** |
|
216 | * Get the driver |