public function setVisibility($path, $visibility)
{
$ex = null;
$result = false;
try {
$result = $this->fs->setVisibility($path, $visibility);
} catch (Error $ex) {
} catch (Exception $ex) {
}
if (!$result || $ex !== null) {
throw new WriteException("File {$path} visibility could not be set to {$visibility}.", $ex);
}
}