idx = zip.LocateFile(id, name$[, table])
name$
inside the zip 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:
True
, zip.LocateFile()
won't distinguish between upper
and lower case characters. This makes the search slower. Defaults to False
.
NoDir:
True
, zip.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
.
This function can also operate on directories. See Zip archive basics for details.