| 1 | <?php |
||
| 15 | public function processCommand() |
||
| 16 | { |
||
| 17 | //delete output dir |
||
| 18 | $outputDir = $this->getPHPoole()->getConfig()->get('output.dir'); |
||
| 19 | if ($this->fs->exists($this->getPath().'/'.$outputDir)) { |
||
| 20 | $this->fs->remove($this->getPath().'/'.$outputDir); |
||
| 21 | $this->wlDone(sprintf("Output directory '%s' removed.", $outputDir)); |
||
| 22 | } |
||
| 23 | // delete server temp files |
||
| 24 | if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir)) { |
||
| 25 | $this->fs->remove($this->getPath().'/'.Serve::$tmpDir); |
||
| 26 | $this->wlDone('Temporary server files deleted.'); |
||
| 27 | } |
||
| 28 | exit(0); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |