@@ 638-640 (lines=3) @@ | ||
635 | $status = $this->getRegistryProcessor()->getAttribute($serial = $this->getSerial()); |
|
636 | ||
637 | // query whether or not the configured source directory is available |
|
638 | if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
|
639 | throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
|
640 | } |
|
641 | ||
642 | // initialize the array with the CSV files found in the source directory |
|
643 | $this->files = glob(sprintf('%s/*.csv', $sourceDir)); |
|
@@ 923-925 (lines=3) @@ | ||
920 | $status = $this->getRegistryProcessor()->getAttribute($this->getSerial()); |
|
921 | ||
922 | // query whether or not the configured source directory is available |
|
923 | if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
|
924 | throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
|
925 | } |
|
926 | ||
927 | // init file iterator on source directory |
|
928 | $fileIterator = new \FilesystemIterator($sourceDir); |