|
CInbox (Common-Inbox)
0.1
Common functionality for ingesting files for archiving.
|
Public Member Functions | |
| init () | |
Public Attributes | |
| const | TASK_LABEL = 'Matching filenames (abstract)' |
Protected Member Functions | |
Task-specific methods | |
| getMatchingFiles ($CIFolder, $patterns) | |
| getNonMatchingFiles ($CIFolder, $patterns) | |
| hasMissingFiles ($CIFolder, $patterns) | |
Checks if entries in this folder (files/subfolders) exist, according to a given glob pattern.
This class is abstract and should be used as parent class for tasks that require checking existence of certain files.
| TaskFilesMatch::getMatchingFiles | ( | $ | CIFolder, |
| $ | patterns | ||
| ) | [protected] |
Returns array with files/folders within the folder that match the glob patterns in '$patterns'.
| TaskFilesMatch::getNonMatchingFiles | ( | $ | CIFolder, |
| $ | patterns | ||
| ) | [protected] |
Returns array with files/folders within the folder that do *not* match the glob patterns in '$patterns'.
| TaskFilesMatch::hasMissingFiles | ( | $ | CIFolder, |
| $ | patterns | ||
| ) | [protected] |
Checks for missing entries of files/folders in $CIFolder defined by $patterns.
| integer | Returns the number of files missing. |
| boolean | If $pattern is empty, False is returned. |
Prepare everything so it's ready for processing.
Reimplemented from CITask.
Reimplemented in TaskCleanFilenames, and TaskFilesWait.
1.7.6.1