Class DirectoryEntry
A generic file system directory entry.
Inheritance
System.Object
DirectoryEntry
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.FileSystem.Listing
Assembly: Cosmos.System2.dll
Syntax
public abstract class DirectoryEntry
Constructors
| Improve this Doc View SourceDirectoryEntry(FileSystem, DirectoryEntry, String, String, Int64, DirectoryEntryTypeEnum)
Initializes a new instance of the DirectoryEntry class.
Declaration
protected DirectoryEntry(FileSystem aFileSystem, DirectoryEntry aParent, string aFullPath, string aName, long aSize, DirectoryEntryTypeEnum aEntryType)
Parameters
Type | Name | Description |
---|---|---|
FileSystem | aFileSystem | The file system that contains the directory entry. |
DirectoryEntry | aParent | The parent directory entry or null if the current entry is the root. |
System.String | aFullPath | The full path to the entry. |
System.String | aName | The entry name. |
System.Int64 | aSize | The size of the entry. |
DirectoryEntryTypeEnum | aEntryType | The ype of the entry. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if aFileSystem is null. |
System.ArgumentException | Thrown if aFullPath / aName is null. |
Fields
| Improve this Doc View SourcemEntryType
Entry type.
Declaration
public readonly DirectoryEntryTypeEnum mEntryType
Field Value
Type | Description |
---|---|
DirectoryEntryTypeEnum |
mFileSystem
Declaration
protected readonly FileSystem mFileSystem
Field Value
Type | Description |
---|---|
FileSystem |
mFullPath
Entry full path.
Declaration
public string mFullPath
Field Value
Type | Description |
---|---|
System.String |
mName
Entry name.
Declaration
public string mName
Field Value
Type | Description |
---|---|
System.String |
mParent
Entry parent.
Declaration
public readonly DirectoryEntry mParent
Field Value
Type | Description |
---|---|
DirectoryEntry |
mSize
Entry size.
Declaration
public long mSize
Field Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceGetFileStream()
Get file stream.
Declaration
public abstract Stream GetFileStream()
Returns
Type | Description |
---|---|
System.IO.Stream | Stream value. |
GetUsedSpace()
Get used space.
Declaration
public abstract long GetUsedSpace()
Returns
Type | Description |
---|---|
System.Int64 | long value. |
SetName(String)
Set entry name.
Declaration
public abstract void SetName(string aName)
Parameters
Type | Name | Description |
---|---|---|
System.String | aName | A name to be set. |
SetSize(Int64)
Set entry size.
Declaration
public abstract void SetSize(long aSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | aSize | A size to be set. |