@@ 724-734 (lines=11) @@ | ||
721 | * @return string|bool |
|
722 | * @author Dmitry (dio) Levashov |
|
723 | **/ |
|
724 | protected function _mkdir($path, $name) { |
|
725 | $path = $this->_joinPath($path, $name); |
|
726 | ||
727 | if (@mkdir($path)) { |
|
728 | @chmod($path, $this->options['dirMode']); |
|
729 | clearstatcache(); |
|
730 | return $path; |
|
731 | } |
|
732 | ||
733 | return false; |
|
734 | } |
|
735 | ||
736 | /** |
|
737 | * Create file and return it's path or false on failed |
|
@@ 744-754 (lines=11) @@ | ||
741 | * @return string|bool |
|
742 | * @author Dmitry (dio) Levashov |
|
743 | **/ |
|
744 | protected function _mkfile($path, $name) { |
|
745 | $path = $this->_joinPath($path, $name); |
|
746 | ||
747 | if (($fp = @fopen($path, 'w'))) { |
|
748 | @fclose($fp); |
|
749 | @chmod($path, $this->options['fileMode']); |
|
750 | clearstatcache(); |
|
751 | return $path; |
|
752 | } |
|
753 | return false; |
|
754 | } |
|
755 | ||
756 | /** |
|
757 | * Create symlink |