| @@ 636-646 (lines=11) @@ | ||
| 633 | * @return string|bool |
|
| 634 | * @author Dmitry (dio) Levashov |
|
| 635 | **/ |
|
| 636 | protected function _mkdir($path, $name) { |
|
| 637 | $path = $this->_joinPath($path, $name); |
|
| 638 | ||
| 639 | if (@mkdir($path)) { |
|
| 640 | @chmod($path, $this->options['dirMode']); |
|
| 641 | clearstatcache(); |
|
| 642 | return $path; |
|
| 643 | } |
|
| 644 | ||
| 645 | return false; |
|
| 646 | } |
|
| 647 | ||
| 648 | /** |
|
| 649 | * Create file and return it's path or false on failed |
|
| @@ 656-666 (lines=11) @@ | ||
| 653 | * @return string|bool |
|
| 654 | * @author Dmitry (dio) Levashov |
|
| 655 | **/ |
|
| 656 | protected function _mkfile($path, $name) { |
|
| 657 | $path = $this->_joinPath($path, $name); |
|
| 658 | ||
| 659 | if (($fp = @fopen($path, 'w'))) { |
|
| 660 | @fclose($fp); |
|
| 661 | @chmod($path, $this->options['fileMode']); |
|
| 662 | clearstatcache(); |
|
| 663 | return $path; |
|
| 664 | } |
|
| 665 | return false; |
|
| 666 | } |
|
| 667 | ||
| 668 | /** |
|
| 669 | * Create symlink |
|