/**
  * @param File $file
  *
  * @return array
  */
 public function removeThumbnails(File $file)
 {
     if (!$this->isImage($file->getExtension())) {
         return;
     }
     $iterator = new \RegexIterator(new \DirectoryIterator($this->getFullPath($file)), '/' . preg_quote($file->getName(), '/') . '.thumb_[a-z]+/');
     foreach ($iterator as $thumbnail) {
         \Cx\Lib\FileSystem\FileSystem::delete_file($thumbnail);
     }
 }
 public function isFile(File $file)
 {
     return is_file($this->rootPath . '/' . $file->__toString());
 }