GVVCL-File

GreenVulcano filemanager-call filereader-call file.


This feature offers the following operations:

  • filemanager-call: This plug-in allows you to perform a sequence of file operations on the local filesystem. The operations allowed are:
    • Deletion of one or more file whose name corresponds to a regular expression;
    • Rename a file;
    • Moving of one or more files, whose name corresponds to a regular expression, from a directory source to a destination directory;
    • Copy of one or more files, whose name corresponds to a regular expression, from source directory to a destination directory;
    • ZIP compress of one or more files, whose name corresponds to a regular expression, from a source directory to a ZIP file in a destination directory;
    • Decompression of ZIP file from a directory source to a target directory;
    • Check existence of one or more files whose name corresponds to a given regular expression;.
  • filereader-call: This plug-in reads the local filesystem file’s content, and saves it in output GVBuffer ‘object’ field. Complete file path is the concatenation of ‘srcPath’ attribute, with the ‘fileName’ attribute. Both of them can contain placeholders, that are expanded at plugin call time. Attributes ‘srcPath’ and ‘fileName’ are subject to these constraints:
    • attribute ‘srcPath’ is overridden by ‘GVFR_DIRECTORY’ property, if present in current GVBuffer. If property is not defined in GVBuffer, the ‘srcPath’ attribute in the configuration is used. In both cases, the value of this attribute can be a placeholder, resolved at plugin call time, and the result of the expansion, must result in an absolute pathname, otherwise an exception is thrown. An exception is also thrown if neither the property nor the attribute in configuration are set.
    • attribute ‘fileName’ is overridden by ‘GVFR_FILE_NAME’ property, if present in current GVBuffer. If property is not defined in GVBuffer, the ‘fileName’ attribute in the configuration is used. In both cases, the value of this attribute can be a placeholder, resolved at plugin call time, and the result of the expansion, combined with the previous attribute, must result in an existent resource in the local filesystem, otherwise an exception is thrown. An exception is also thrown if neither the property nor the attribute in configuration are set.