Name
xad.LocateFile -- find file in xad archive
Synopsis
idx = xad.LocateFile(id, name$[, table])
Function
This function searches for the file specified by name$ inside the xad archive specified by id and returns its index if it is found, otherwise -1 is returned.

The optional table argument can be used to specify further options. The following table tags are currently recognized:

NoCase:
If this tag is set to True, xad.LocateFile() won't distinguish between upper and lower case characters. This makes the search slower. Defaults to False.

NoDir:
If this tag is set to True, xad.LocateFile() will just match the file name so it will also trigger if the file is in a subdirectory in the archive. Defaults to False.

Inputs
id
identifier of the xad archive to use
name$
name of the file to locate
table
optional: table argument containing further options (see above)
Results
idx
index of file inside xad archive or -1 if it couldn't be found

Show TOC