check_still_files($skip_files)integrity_check/integrity_check.php, line 135
<?php
function check_still_files($skip_files) {
$dir = SAN_NAS_BASE_PATH . DS . STILL_LOCATION;
$dh = opendir($dir);
$missing_db_stills = array();
while (($folder = readdir($dh)) !== FALSE) {
if (!is_dir($dir . DS . $folder) || strpos($folder, '.') === 0 || drupal_strlen($folder) > 1) {
continue;
}
$fh = opendir($dir . DS . $folder);
while (($file = readdir($fh)) !== FALSE) {
if (strpos($file, '.') === 0 || in_array($file, $skip_files)) {
continue;
}
$missing_db_stills[] = $file;
}
closedir($fh);
}
closedir($dh);
log_message('stillfile', $missing_db_stills);
}
?>