/* calculate file MD5 sum */
$full_path = $this->translate_path($details['directory_path']) ."/". $details['name'];
+
+ if(!file_exists($full_path)) {
+ print "File ". $full_path ." does not exist\n";
+ return;
+ }
+
+ if(!is_readable($full_path)) {
+ print "File ". $full_path ." is not readable for ". get_current_user() ."\n";
+ return;
+ }
+
$file_md5 = md5_file($full_path);
$this->_debug("Image [". $idx ."] ". $details['name'] ." Thumbnails:");