|
@@ 566-568 (lines=3) @@
|
| 563 |
|
$status = $this->getRegistryProcessor()->getAttribute($this->getSerial()); |
| 564 |
|
|
| 565 |
|
// query whether or not the configured source directory is available |
| 566 |
|
if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
| 567 |
|
throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
| 568 |
|
} |
| 569 |
|
|
| 570 |
|
// initialize the file iterator on source directory |
| 571 |
|
$files = glob(sprintf('%s/*.csv', $sourceDir)); |
|
@@ 719-721 (lines=3) @@
|
| 716 |
|
$status = $this->getRegistryProcessor()->getAttribute($this->getSerial()); |
| 717 |
|
|
| 718 |
|
// query whether or not the configured source directory is available |
| 719 |
|
if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
| 720 |
|
throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir)); |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
// init file iterator on source directory |
| 724 |
|
$fileIterator = new \FilesystemIterator($sourceDir); |