public function verifyDirectoryIsWritable($path, $label = 'path') { $this->verifyDirectoryIsReadable($path, $label); if (!is_writable($path)) { throw new Exception(sprintf('Could not write the %s at %s', $label, $path)); } }