Table of Contents

Interface IFolderModel

Namespace
ToSic.Sxc.Cms.Assets
Assembly
ToSic.Sxc.dll

BETA: A Folder Model which describes a folder as returned by the AppAssets DataSource.

[InternalApi_DoNotUse_MayChangeWithoutNotice("Still tweaking details and naming v19.0x")]
public interface IFolderModel : ICanWrapData

Remarks

History

  • Introduced (BETA) in v19.01 for the AppAssets DataSource.
  • Not to be seen as final, since we may rename this type when we also
  • This is similar to the IFolder but still a bit different. For example, it has a Folder property.

Properties

Created

When the file/folder was created.

DateTime Created { get; }

Property Value

DateTime

Files

All files in this folder.

IEnumerable<IFileModel> Files { get; }

Property Value

IEnumerable<IFileModel>

Folder

Reference to the parent folder. Returns null on the root folder.

IFolderModel Folder { get; }

Property Value

IFolderModel

Folders

All sub folders in this folder.

IEnumerable<IFolderModel> Folders { get; }

Property Value

IEnumerable<IFolderModel>

FullName

The full name with extension. If it's a folder or there is no extension, then it's identical to the Name

string FullName { get; }

Property Value

string

Modified

When the file/folder was modified.

DateTime Modified { get; }

Property Value

DateTime

Name

The folder name - or blank when it's the root.

string Name { get; }

Property Value

string

Path

Starting in the App-Root

string Path { get; }

Property Value

string

Url

The full url starting at the root of the site. Absolute but without protocol/domain.

string Url { get; }

Property Value

string