FileManagerRootFolder Class

Defines a root folder for the file manager.

Definition

Namespace: GleamTech.FileUltimate.AspNet.UI
Assembly: GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 9.1.3
C#
public sealed class FileManagerRootFolder : UniqueKeyedItem<FileManagerRootFolder>
Inheritance
Object    UniqueKeyedItemFileManagerRootFolder    FileManagerRootFolder

Constructors

FileManagerRootFolder Initializes a new instance of the FileManagerRootFolder class.

Properties

AccessControls Gets the collection of the access controls for this root folder.
Location Gets or sets the actual location of the root folder. This property is required and can not be omitted.

This property can be set to:

  • A plain string which contains a physical/virtual path
    (e.g. "c:\SomeFolder", "/SomeFolder", "~/SomeFolder").

    This is parsed as PhysicalLocation.

    Note that virtual paths can only be resolved in a web application
    and on Linux paths starting with "/" are physical paths and not virtual paths.

  • A Location instance created with one of the builtin location providers
    (e.g. PhysicalLocation, AzureBlobLocation, AmazonS3Location, ArchiveLocation).

    You can also override Location base class to implement your custom location provider.

  • A provider string which defines a specific location provider
    (e.g. "Type=Physical; Path=c:\SomeFolder").

Name Gets or sets the display name of the root folder. This property can not be empty and can not contain the character sequence "]:" (right square bracket preceding colon).

Methods

GetFolder Gets a FileManagerFolder instance corresponding to the given relative path under this root folder. For getting the folder for the root folder itself, the parameter would be "\".
GetFullPath Gets the full path of a folder specified in format [RootFolderName]:\Some\Folder

See Also