Files
mixtape/zero.Core/FileStorage/IFileMeta.cs
T
2021-11-25 15:38:36 +01:00

45 lines
897 B
C#

namespace zero.FileStorage;
public interface IFileMeta
{
/// <summary>
/// Full path of the item within the file system
/// </summary>
string Path { get; }
/// <summary>
/// Absolute path of the item
/// </summary>
string AbsolutePath { 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; }
}