Example #1
0
 /**
  * Checks if the file with a given name is hidden.
  *
  * @param string $fileName
  *
  * @return bool `true` if the file is hidden.
  */
 public function isHiddenFile($fileName)
 {
     $hideFilesRegex = $this->ckConfig->getHideFilesRegex();
     if ($hideFilesRegex) {
         return (bool) preg_match($hideFilesRegex, $fileName);
     }
     return false;
 }