Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | public function archive() |
||
18 | { |
||
19 | $archiveDirectory = "storage/{$this->docset->code()}"; |
||
20 | |||
21 | system( |
||
22 | "tar \ |
||
23 | --exclude='.DS_Store' \ |
||
24 | -czf \ |
||
25 | $archiveDirectory/{$this->docset->code()}.tgz \ |
||
26 | -C $archiveDirectory \ |
||
27 | {$this->docset->code()}.docset", |
||
28 | $result |
||
29 | ); |
||
30 | |||
31 | return $result === 0; |
||
32 | } |
||
34 |