Interface IFileModel
BETA: A File Model which describes a file as returned by the AppAssets DataSource.
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still tweaking details and naming v19.0x")]
public interface IFileModel : ICanWrapData
Remarks
History
Properties
Created
When the file/folder was created.
DateTime Created { get; }
Property Value
Extension
The file name extension, without any dot.
Purpose is to do switching between extensions.
If you want to have a safe, merged file name, just take the FullName
.
string Extension { get; }
Property Value
Folder
Reference to the folder this file is in.
Returns null
on the root folder.
IFolderModel Folder { get; }
Property Value
FullName
The full name with extension. If it's a folder or there is no extension, then it's identical to the ToSic.Sxc.Cms.Assets.Internal.IFileModelSync.Name
string FullName { get; }
Property Value
Modified
When the file/folder was modified.
DateTime Modified { get; }
Property Value
Name
The file name without extension.
string Name { get; }
Property Value
Path
Starting in the App-Root
string Path { get; }
Property Value
Size
The size in bytes.
int Size { get; }
Property Value
SizeInfo
ISizeInfo SizeInfo { get; }
Property Value
Url
The full url starting at the root of the site. Absolute but without protocol/domain.
string Url { get; }