XML Script logo
Command _dir
Attribute

name, a string, defaults to 'dir'

[optional] the name of the element to which the directory information is to be assigned.

Attribute

mask, a string, defaults to '*'

[optional] the file mask.

Attribute

path, a string, defaults to '.'

[optional] the directory path to open.

Description

Creates a data side element with the name specified by the 'name' attribute, which will contain information about the host file system. The new element may contain up to two kinds of element - 'directory' elements and 'file' elements. Both element types will contain a .name attribute (the full file or directory name); a .type attribute (the extension following the last dot in the name); a .shortname attribute (the name attribute with the .type attribute removed) and a .size attribute specifying the size of the file in bytes.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited