|
@@ -104,18 +104,21 @@ function readFlags($series) {
|
|
|
# Find the most recent mtime in the series directory
|
|
# Find the most recent mtime in the series directory
|
|
|
$flags['mtime'] = filemtime($path);
|
|
$flags['mtime'] = filemtime($path);
|
|
|
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
|
|
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
|
|
|
- foreach($objects as $name => $object) {
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ foreach($objects as $name => $object) {
|
|
|
|
|
|
|
|
- # Skip junk
|
|
|
|
|
- if (isJunk($name)) {
|
|
|
|
|
- continue;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ # Skip junk
|
|
|
|
|
+ if (isJunk($name)) {
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- # Track the most recent mtime
|
|
|
|
|
- $mtime = filemtime($name);
|
|
|
|
|
- if ($mtime > $flags['mtime']) {
|
|
|
|
|
- $flags['mtime'] = $mtime;
|
|
|
|
|
|
|
+ # Track the most recent mtime
|
|
|
|
|
+ $mtime = filemtime($name);
|
|
|
|
|
+ if ($mtime > $flags['mtime']) {
|
|
|
|
|
+ $flags['mtime'] = $mtime;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ } catch (UnexpectedValueException $e) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# Look for all the exists files
|
|
# Look for all the exists files
|