Kraken\Filesystem\Filesystem::createFile PHP Method

createFile() public method

public createFile ( $path, $contents = '', $visibility = self::VISIBILITY_DEFAULT )
    public function createFile($path, $contents = '', $visibility = self::VISIBILITY_DEFAULT)
    {
        try {
            $this->fs->put($path, $contents, $this->prepareConfig($visibility));
            return;
        } catch (Error $ex) {
        } catch (Exception $ex) {
        }
        throw new WriteException("File {$path} could not be created.", $ex);
    }