elFinder\elFinderVolumeLocalFileSystem::_mkfile PHP Method

_mkfile() protected method

Create file and return it's path or false on failed
Author: Dmitry (dio) Levashov
protected _mkfile ( string $path, string $name ) : string | boolean
$path string parent dir path
$name string new file name
return string | boolean
    protected function _mkfile($path, $name)
    {
        $path = $path . DIRECTORY_SEPARATOR . $name;
        if ($fp = @fopen($path, 'w')) {
            @fclose($fp);
            @chmod($path, $this->options['fileMode']);
            return $path;
        }
        return false;
    }