@@ 736-746 (lines=11) @@ | ||
733 | * @return string|bool |
|
734 | * @author Dmitry (dio) Levashov |
|
735 | **/ |
|
736 | protected function _mkdir($path, $name) { |
|
737 | $path = $this->_joinPath($path, $name); |
|
738 | ||
739 | if (@mkdir($path)) { |
|
740 | @chmod($path, $this->options['dirMode']); |
|
741 | clearstatcache(); |
|
742 | return $path; |
|
743 | } |
|
744 | ||
745 | return false; |
|
746 | } |
|
747 | ||
748 | /** |
|
749 | * Create file and return it's path or false on failed |
|
@@ 756-766 (lines=11) @@ | ||
753 | * @return string|bool |
|
754 | * @author Dmitry (dio) Levashov |
|
755 | **/ |
|
756 | protected function _mkfile($path, $name) { |
|
757 | $path = $this->_joinPath($path, $name); |
|
758 | ||
759 | if (($fp = @fopen($path, 'w'))) { |
|
760 | @fclose($fp); |
|
761 | @chmod($path, $this->options['fileMode']); |
|
762 | clearstatcache(); |
|
763 | return $path; |
|
764 | } |
|
765 | return false; |
|
766 | } |
|
767 | ||
768 | /** |
|
769 | * Create symlink |