Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 1.1.2.

Syntax

findFiles(directory, regex)

...

Excerpt

Searches for files that match the given regex , in the specified folder. The routine only searches for files and NOT , not directories.

Returns a list with absolute paths for files that match the given regex. The regex match is done on the file name, not the full path. If the regex parameter is empty string, the routine returns an empty result

Parameters

Parameter name

Type

Required

Description

directory

string

Yes

Specifies the directory to search into.

regex

string

Yes

Specifies the file pattern to search for.

Return type

string []

Returns an array containing the absolute paths of all files from the given directory whose which name match the regex.

Example

...

Note
  1. It is recommended that you use forward slashes ( / ) for file paths.
  2. If the regex contains a backslash , please replace it with two backslashes, or else otherwise you will get a syntax error.

...

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "file_routines"
labelsfile_routines