PurposeGet the list of files included in a Unix tar archive.Synopsis
procedure tarlist(opt:integer,tarfile:text,lsf:list of text, filters:string)
procedure tarlist(tarfile:text,lsf:list of text)Arguments
SYS_NODIR SYS_DIRONLY tarfile File name of the archive lsf Resulting list of file names filters File name filters (default: all files reported)ExampleThe following prints the list of files included in the archive myfiles.tar:tarlist("myfiles.tar",lsf) writeln(lsf)Further information1. The filters argument has a similar structure as the corresponding argument of procedure findfiles except that wildcard characters "*" and "?" may appear anywhere in a path. A file is reported if it matches any of the patterns of this list.2. When evaluating the filters, file name matching is achieved using function pathmatch and differences may be observed depending on the operating system (e.g. file names are case sensitive under Posix systems but not under Windows).3. This implementation processes only regular files and directories: other file types included in the archive (like links) are silently ignored.Related topicsModule
If you have any comments or suggestions about these pages, please send mail to email@example.com.
© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.