src/Plugins/ArchivePlugin.php 1 location
|
@@ 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); |
src/Plugins/SubjectPlugin.php 1 location
|
@@ 186-188 (lines=3) @@
|
| 183 |
|
$status = $this->getRegistryProcessor()->getAttribute($serial = $this->getSerial()); |
| 184 |
|
|
| 185 |
|
// query whether or not the configured source directory is available |
| 186 |
|
if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) { |
| 187 |
|
throw new \Exception(sprintf('Source directory %s for subject %s is not available!', $sourceDir, $subject->getId())); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
// initialize the array with the CSV files found in the source directory |
| 191 |
|
$files = glob(sprintf('%s/*.csv', $sourceDir)); |