Name
xad.GetFileAttributes -- get file attributes
Synopsis
t = xad.GetFileAttributes(id, idx)
Function
This function returns attributes of the file at the index specified by idx inside the xad archive specified by id. xad.GetFileAttributes() returns a table with the following information about the file:

Type:
This will be #DOSTYPE_FILE if the entry is a file or #DOSTYPE_DIRECTORY if the entry is a directory.

Name:
This field will contain a string with the full path to this file or directory.

Size:
The size of the file in bytes or 0 for directories.

CompressedSize:
The compressed size of the file in bytes or 0 for directories.

Encryption:
This will be set to True if the file is stored with encryption, False otherwise.

Flags:
This field will receive a combination of protection flags of the file or directory. See the documentation of the GetFileAttributes() function in your Hollywood manual for details on possible values of this field.

Time:
The datestamp for the file. This will be in the standard Hollywood date format of dd-mmm-yyyy hh:mm:ss.

Inputs
id
identifier of the xad archive to use
idx
index of the file to query
Results
t
table containing file attributes

Show TOC