%SYS
DirectoryComponent Class Reference

<class>DirectoryComponent</class> is a subclass of <class>Component</class>. More...

Inheritance diagram for DirectoryComponent:
Collaboration diagram for DirectoryComponent:

Public Member Functions

Inventory.DirectoryComponent Init (Inventory.Scan scan, _.Library.String directoryName)
 Initializes and saves this <class>DirectoryComponent</class>, recording scan More...
 

Static Public Attributes

 XMLNAME = None
 The element name used in the XML representation of the component.
 
 XMLTYPE = None
 The identifier used to distinguish the type of this component in the XML representation.
 
- Static Public Attributes inherited from Component
 XMLNAME = None
 The element name used in the XML representation of the component.
 
 XMLTYPE = None
 The identifier used to distinguish the type of this component in the XML representation.
 

Additional Inherited Members

- Public Attributes inherited from Component
 Name
 The name of this component, which distinguishes it from other components of the same type. More...
 
 ParentComponent
 The parent component of this component. More...
 
 Scan
 The <class>Scan</class> which found this component. More...
 
 SubComponents
 The subcomponents of this component. More...
 

Detailed Description

<class>DirectoryComponent</class> is a subclass of <class>Component</class>.

An instance represents an operating system directory.

It contains references to the <class>FileComponent</class>s and <class>DirectoryComponent</class>s representing the files and subdirectories in the directory as subcomponents.

Member Function Documentation

◆ Init()

Inventory.DirectoryComponent Init ( Inventory.Scan  scan,
_.Library.String  directoryName 
)

Initializes and saves this <class>DirectoryComponent</class>, recording scan

as the <property>Scan</property> property, and scanning directoryName for its subdirectories and files.

The saved <class>DirectoryComponent</class> is returned.