private function isExistingFiles($files, $tmpDir, $library) {
    foreach ($files as $file) {
      $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $file['path']);
      if (!file_exists($tmpDir . DIRECTORY_SEPARATOR . $library . DIRECTORY_SEPARATOR . $path)) {
        $this->h5pF->setErrorMessage($this->h5pF->t('The file "%file" is missing from library: "%name"', array('%file' => $path, '%name' => $library)), 'library-missing-file');
        return FALSE;
      }
    }
    return TRUE;
  }
private function isExistingFiles($files, $tmpDir, $library) {
    foreach ($files as $file) {
      $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $file['path']);
      if (!file_exists($tmpDir . DIRECTORY_SEPARATOR . $library . DIRECTORY_SEPARATOR . $path)) {
        $this->h5pF->setErrorMessage($this->h5pF->t('The file "%file" is missing from library: "%name"', array('%file' => $path, '%name' => $library)), 'library-missing-file');
        return FALSE;
      }
    }
    return TRUE;
  }
private function isExistingFiles ( $ files , $ tmpDir , $ library ) { foreach ( $ files as $ file ) { $ path = str_replace ( array ( '/' , '\\' ) , DIRECTORY_SEPARATOR , $ file [ 'path' ] ) ; if ( ! file_exists ( $ tmpDir . DIRECTORY_SEPARATOR . $ library . DIRECTORY_SEPARATOR . $ path ) ) { $ this -> h5pF -> setErrorMessage ( $ this -> h5pF -> t ( 'The file "%file" is missing from library: "%name"' , array ( '%file' => $ path , '%name' => $ library ) ) , 'library-missing-file' ) ; return FALSE ; } } return TRUE ; }
Figure out if the provided file paths exists

Triggers error messages if files doesn't exist

@param array $files
List of file paths relative to $tmpDir
@param string $tmpDir
Path to the directory where the $files are stored.
@param string $library
Name of the library we are processing
@return boolean
TRUE if all the files excists
Figure out if the provided file paths exists