@@ 434-443 (lines=10) @@ | ||
431 | * @return string|bool |
|
432 | * @author Dmitry (dio) Levashov |
|
433 | **/ |
|
434 | protected function _mkdir($path, $name) { |
|
435 | $path = $path.DIRECTORY_SEPARATOR.$name; |
|
436 | ||
437 | if (@mkdir($path)) { |
|
438 | @chmod($path, $this->options['dirMode']); |
|
439 | return $path; |
|
440 | } |
|
441 | ||
442 | return false; |
|
443 | } |
|
444 | ||
445 | /** |
|
446 | * Create file and return it's path or false on failed |
|
@@ 453-462 (lines=10) @@ | ||
450 | * @return string|bool |
|
451 | * @author Dmitry (dio) Levashov |
|
452 | **/ |
|
453 | protected function _mkfile($path, $name) { |
|
454 | $path = $path.DIRECTORY_SEPARATOR.$name; |
|
455 | ||
456 | if (($fp = @fopen($path, 'w'))) { |
|
457 | @fclose($fp); |
|
458 | @chmod($path, $this->options['fileMode']); |
|
459 | return $path; |
|
460 | } |
|
461 | return false; |
|
462 | } |
|
463 | ||
464 | /** |
|
465 | * Create symlink |