Nucleus .Net Core CMS

Models.FileSystem.Folder Class

Namespace: Nucleus.Abstractions.Models.FileSystem
Assembly: Nucleus.Abstractions.dll
Represents a folder stored in a file system.

Properties

Folders Property

Gets sub-folders of this folder.

Files Property

Gets files stored in this folder.

Permissions Property

List of folder permissions.

IncludeInSearch Property

Specifies whether to include the files within the folder in the search index.

FolderValidationRules Property

Specifies a list of name validation rules (regular expressions) and error messages for folders within this folder.

FileValidationRules Property

Specifies a list of name validation rules (regular expressions) and error messages for files within this folder.

Fields

URN Field

Folder entity Namespace for permissions, other scoped references

Methods

SortFolders<T0> (Folder,<T0>,Boolean) Method

SortFolders<T0> (System.Linq.Expressions.Expression{System.Func{Nucleus.Abstractions.Models.FileSystem.Folder,  <T0>},  System.Boolean)
Sort this folder's sub-folders.

SortFiles<T0> (File,<T0>,Boolean) Method

SortFiles<T0> (System.Linq.Expressions.Expression{System.Func{Nucleus.Abstractions.Models.FileSystem.File,  <T0>},  System.Boolean)
Sort this folder's sub-folders.

CopyDatabaseValuesTo (Folder) Method

CopyDatabaseValuesTo (Folder target)
Data for folder items is retrieved from the database, and from the file system. This function "merges" a Folder object which has been retrieved from the file system with one from the database by copying the fields that are only present in the database (that is, can't be retrieved from the file system).
Parameters
Name Type
target Nucleus.Abstractions.Models.FileSystem.Folder