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