| @@ 68-70 (lines=3) @@ | ||
| 65 | clearstatcache(); |
|
| 66 | ||
| 67 | // query whether or not the configured source directory is available |
|
| 68 | if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
|
| 69 | throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
|
| 70 | } |
|
| 71 | ||
| 72 | // init file iterator on source directory |
|
| 73 | $fileIterator = new \FilesystemIterator($sourceDir); |
|
| @@ 165-167 (lines=3) @@ | ||
| 162 | $status = $this->getRegistryProcessor()->getAttribute($this->getSerial()); |
|
| 163 | ||
| 164 | // query whether or not the configured source directory is available |
|
| 165 | if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
|
| 166 | throw new \Exception(sprintf('Source directory %s for subject %s is not available!', $sourceDir, $subject->getId())); |
|
| 167 | } |
|
| 168 | ||
| 169 | // initialize the array with the files matching the suffix found in the source directory |
|
| 170 | $files = glob(sprintf('%s/*.%s', $sourceDir, $subject->getSuffix())); |
|