| @@ 625-635 (lines=11) @@ | ||
| 622 | * @return string|bool |
|
| 623 | * @author Dmitry (dio) Levashov |
|
| 624 | **/ |
|
| 625 | protected function _mkdir($path, $name) { |
|
| 626 | $path = $this->_joinPath($path, $name); |
|
| 627 | ||
| 628 | if (@mkdir($path)) { |
|
| 629 | @chmod($path, $this->options['dirMode']); |
|
| 630 | clearstatcache(); |
|
| 631 | return $path; |
|
| 632 | } |
|
| 633 | ||
| 634 | return false; |
|
| 635 | } |
|
| 636 | ||
| 637 | /** |
|
| 638 | * Create file and return it's path or false on failed |
|
| @@ 645-655 (lines=11) @@ | ||
| 642 | * @return string|bool |
|
| 643 | * @author Dmitry (dio) Levashov |
|
| 644 | **/ |
|
| 645 | protected function _mkfile($path, $name) { |
|
| 646 | $path = $this->_joinPath($path, $name); |
|
| 647 | ||
| 648 | if (($fp = @fopen($path, 'w'))) { |
|
| 649 | @fclose($fp); |
|
| 650 | @chmod($path, $this->options['fileMode']); |
|
| 651 | clearstatcache(); |
|
| 652 | return $path; |
|
| 653 | } |
|
| 654 | return false; |
|
| 655 | } |
|
| 656 | ||
| 657 | /** |
|
| 658 | * Create symlink |
|