Loop Zip-File Entries (AI Studio Core)
Synopsis
This operator loops over the entries of a zip file.Description
This operator loops over the entries of a zip file. Depending on the parameters loops only file and/or directory entries and filters the files by name. Each entry is delivered as FileObject to the subprocess at the respective inner port.
Input
- file (IOObject)
- input (IOObject)
Output
- output (IOObject)
Parameters
- filenameThe zipfile over whose entries this operator iterates.
- internal directoryThe directory inside the zipfile from which the entries should be taken.
- filterSpecifies a regular expression which is used as filter for the file and directory names, e.g. 'a.*b' for all files starting with 'a' and ending with 'b'. Ignored if empty.
- filtered stringIndicates which part of the file name is matched against the filter expression.
- file name macroSpecifies the name of the macro, which delievers the current file name without path. Use %{macro_name} to use the file name in suboperators.
- file path macroSpecifies the name of the macro containing the absolute path and file name of the current file. Use %{macro_name} to address the file in suboperators.
- parent path macroSpecifies the name of the macro containing the absolute path of the current file's directory. Use %{macro_name} to address the file in suboperators.
- recursiveIndicates if the operator will also deliver the files / directories of subdirectories (resursively).
- iterate over filesIf checked, the operator will iterate over files in the given directory and set their path and name macros.
- iterate over subdirsIf checked, the operator will iterate over subdirectories in the given directory and set their path and name macros.