Click or drag to resize

DirectoryItem Class

Represents a file system directory and its contained files (documents) and sub-directories.
Inheritance Hierarchy
SystemObject
  OpenDiscoverSDK.Interfaces.Platform.Inventory.LegacyDirectoryItem

Namespace: OpenDiscoverSDK.Interfaces.Platform.Inventory.Legacy
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2025.4.4.0 (2025.4.4)
Syntax
C#
[DataContractAttribute]
public class DirectoryItem

The DirectoryItem type exposes the following members.

Constructors
 NameDescription
Public methodDirectoryItemInitializes a new instance of the DirectoryItem class
Top
Properties
 NameDescription
Public propertyAttributes Directory file system attributes.
Public propertyCreationTimeUtc Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory.
Public propertyDocuments Child documents directly contained by this directory.
Public propertyErrorMessage Error message for the error that occurred enumerating the directory.
Public propertyHasError Error occured enumerating the directory.
Public propertyLastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
Public propertyLastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Public propertyMembers Returns the sub-directory items of this instance first and then the document items of this instance.
Public propertyName Directory or file name.
Public propertyNameWithTotalFileCount Name of the directory and total document count under the directory as a string. Format: "Name (count)"
Public propertyOwner Gets or sets the file system owner.
Public propertyPath Full path of the directory
Public propertyResult Result of the enumeration of this directory item.
Public propertySubDirectories Sub-directories of this directory item.
Public propertyTotalDirectoryCount Total number of sub-directories in this directory.
Public propertyTotalDocumentCount Total number of documents contained directly in this directory and in all sub-directories nested under this directory (inclused sub-directories of sub.
Public propertyTotalSizeInBytes Total size, in bytes, of all the documents in this directory and in all sub-directories nested under this directory.
Top
Methods
 NameDescription
Public methodStatic memberCreateHierarchy Creates a DirectoryItem hierarchy from a input document list where each document in list has a FilePath property that points to a valid file path and these paths are used to build a directory hierarchy. The documents should have a common root folder path.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also