Skip to main content

Inventory.DirectoryComponent

Class Inventory.DirectoryComponent Extends Component

DirectoryComponent is a subclass of Component. An instance represents an operating system directory.

It contains references to the FileComponents and DirectoryComponents representing the files and subdirectories in the directory as subcomponents.

Parameters

XMLNAME

Parameter XMLNAME = "DirectoryComponent";

The element name used in the XML representation of the component.

XMLTYPE

Parameter XMLTYPE = "DirectoryComponent";

The identifier used to distinguish the type of this component in the XML representation.

Methods

Init

Method Init(scan As Scan, directoryName As %String) As DirectoryComponent

Initializes and saves this DirectoryComponent, recording scan as the Scan property, and scanning directoryName for its subdirectories and files.

The saved DirectoryComponent is returned.