discovery.listDirectory(target, path) – Foundation 7.3 and later
Retrieves the directory listing of the directory specified by the path. Returns a list of DiscoveredDirectoryEntry nodes. If the call fails, it returns none and records the failure reason in the DirectoryListing node.
The target node may be one of the following:
- Host
- DiscoveryAccess
- DiscoveredDirectoryEntry
- DiscoveredFQDN
- DiscoveredHBA
- DiscoveredListeningPort
- DiscoveredNetworkConnection
- DiscoveredNetworkInterface
- DiscoveredProcess
- DiscoveredSNMPRow
- DiscoveredWMI
- SQLResultRow
- DirectoryListing
- DiscoveredPackages
- DiscoveredSNMPTable
- DiscoveredWMIQuery
- FQDNList
- HBAInfoList
- IntegrationResult
- InterfaceList
- NetworkConnectionList
- ProcessList
- DeviceInfo
- DiscoveredCommandResult
- DiscoveredFile
- DiscoveredPatches
- DiscoveredRegistryValue
- DiscoveredSNMP
- HostInfo
Restrictions
- On Windows systems, owner and group information is not recovered.
- Group names which include spaces are not supported.
- Config.sys is not listed as a system file.
- DirectoryListing nodes are not created for empty Windows directories.