|
@@ 574-576 (lines=3) @@
|
| 571 |
|
$status = $this->getRegistryProcessor()->getAttribute($this->getSerial()); |
| 572 |
|
|
| 573 |
|
// query whether or not the configured source directory is available |
| 574 |
|
if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
| 575 |
|
throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
| 576 |
|
} |
| 577 |
|
|
| 578 |
|
// initialize the file iterator on source directory |
| 579 |
|
$files = glob(sprintf('%s/*.csv', $sourceDir)); |
|
@@ 825-827 (lines=3) @@
|
| 822 |
|
$status = $this->getRegistryProcessor()->getAttribute($this->getSerial()); |
| 823 |
|
|
| 824 |
|
// query whether or not the configured source directory is available |
| 825 |
|
if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
| 826 |
|
throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
| 827 |
|
} |
| 828 |
|
|
| 829 |
|
// init file iterator on source directory |
| 830 |
|
$fileIterator = new \FilesystemIterator($sourceDir); |