drupal_verify_install_file

function drupal_verify_install_file

drupal_verify_install_file($file, $mask = NULL, $type = 'file')

Verifies the state of the specified file.

Parameters

$file: The file to check for.

$mask: An optional bitmask created from various FILE_* constants.

$type: The type of file. Can be file (default), dir, or link.

Return value

TRUE on success or FALSE on failure. A message is set for the latter.

File

includes/install.inc, line 837
API functions for installing modules and themes.

Code

function drupal_verify_install_file($file, $mask = NULL, $type = 'file') {
  $return = TRUE;
  // Check for files that shouldn't be there.
  if (isset($mask) && ($mask & FILE_NOT_EXIST) &