diff --git a/source/Cosmos.System2/FileSystem/Listing/DirectoryEntry.cs b/source/Cosmos.System2/FileSystem/Listing/DirectoryEntry.cs index 95749a93b..e047821bf 100644 --- a/source/Cosmos.System2/FileSystem/Listing/DirectoryEntry.cs +++ b/source/Cosmos.System2/FileSystem/Listing/DirectoryEntry.cs @@ -29,11 +29,26 @@ namespace Cosmos.System.FileSystem.Listing /// public abstract class DirectoryEntry { + /// + /// Entry size. + /// public long mSize; + /// + /// Entry full path. + /// public string mFullPath; + /// + /// Entry name. + /// public string mName; protected readonly FileSystem mFileSystem; + /// + /// Entry parent. + /// public readonly DirectoryEntry mParent; + /// + /// Entry type. + /// public readonly DirectoryEntryTypeEnum mEntryType; /// @@ -45,12 +60,8 @@ namespace Cosmos.System.FileSystem.Listing /// The entry name. /// The size of the entry. /// The ype of the entry. - /// - /// - /// Argument is null or empty - /// - /// - /// + /// Thrown if aFileSystem is null. + /// Thrown if aFullPath / aName is null. protected DirectoryEntry(FileSystem aFileSystem, DirectoryEntry aParent, string aFullPath, string aName, long aSize, DirectoryEntryTypeEnum aEntryType) { if (aFileSystem == null) @@ -74,12 +85,28 @@ namespace Cosmos.System.FileSystem.Listing mFullPath = aFullPath; } + /// + /// Set entry name. + /// + /// A name to be set. public abstract void SetName(string aName); + /// + /// Set entry size. + /// + /// A size to be set. public abstract void SetSize(long aSize); + /// + /// Get file stream. + /// + /// Stream value. public abstract Stream GetFileStream(); + /// + /// Get used space. + /// + /// long value. public abstract long GetUsedSpace(); } }