We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d9282 commit ea05da4Copy full SHA for ea05da4
1 file changed
src/Spectre.Builder/FileResource.cs
@@ -41,6 +41,12 @@ public DateTimeOffset? LastUpdated
41
}
42
43
44
+ /// <summary>
45
+ /// Gets the length of the file resource in bytes.
46
+ /// Returns null if the file does not exist.
47
+ /// </summary>
48
+ public long? Length => _file.Exists ? _file.Length : null;
49
+
50
/// <inheritdoc/>
51
Task IResource.DetermineAvailabilityAsync(CancellationToken cancellationToken)
52
{
0 commit comments