Files
mixtape/zero.Core/FileStorage/IFileMeta.cs
T

40 lines
800 B
C#

namespace zero.FileStorage;
public interface IFileInfo
{
/// <summary>
/// Full path of the item within the file system
/// </summary>
string Path { get; }
/// <summary>
/// Name of the item
/// </summary>
string Name { get; }
/// <summary>
/// Full path to the directory containing the item
/// </summary>
string DirectoryPath { get; }
/// <summary>
/// Length of the file in bytes
/// </summary>
long Length { get; }
/// <summary>
/// Date when the item was last modified
/// </summary>
DateTimeOffset LastModifiedDate { get; }
/// <summary>
/// Whether this item is directory or a file
/// </summary>
bool IsDirectory { get; }
/// <summary>
/// Additional properties
/// </summary>
Dictionary<string, object> Properties { get; }
}