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);
}