Search Results for

    Show / Hide Table of Contents
    View Source

    Class FileSystemTreeControllerBase

    Inheritance
    System.Object
    ManagementApiControllerBase
    Namespace: Umbraco.Cms.Api.Management.Controllers.Tree
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public abstract class FileSystemTreeControllerBase : ManagementApiControllerBase

    Properties

    View Source

    FileSystem

    Declaration
    protected abstract IFileSystem FileSystem { get; }
    Property Value
    Type Description
    IFileSystem

    Methods

    View Source

    DirectoryHasChildren(String)

    Declaration
    protected virtual bool DirectoryHasChildren(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.Boolean
    View Source

    GetAncestorModels(String, Boolean)

    Declaration
    protected virtual FileSystemTreeItemPresentationModel[] GetAncestorModels(string path, bool includeSelf)
    Parameters
    Type Name Description
    System.String path
    System.Boolean includeSelf
    Returns
    Type Description
    FileSystemTreeItemPresentationModel[]
    View Source

    GetAncestors(String, Boolean)

    Declaration
    protected virtual async Task<ActionResult<IEnumerable<FileSystemTreeItemPresentationModel>>> GetAncestors(string path, bool includeSelf = true)
    Parameters
    Type Name Description
    System.String path
    System.Boolean includeSelf
    Returns
    Type Description
    Task<ActionResult<IEnumerable<FileSystemTreeItemPresentationModel>>>
    View Source

    GetChildren(String, Int32, Int32)

    Declaration
    protected async Task<ActionResult<PagedViewModel<FileSystemTreeItemPresentationModel>>> GetChildren(string path, int skip, int take)
    Parameters
    Type Name Description
    System.String path
    System.Int32 skip
    System.Int32 take
    Returns
    Type Description
    Task<ActionResult<PagedViewModel<FileSystemTreeItemPresentationModel>>>
    View Source

    GetDirectories(String)

    Declaration
    protected virtual string[] GetDirectories(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.String[]
    View Source

    GetFiles(String)

    Declaration
    protected virtual string[] GetFiles(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.String[]
    View Source

    GetRoot(Int32, Int32)

    Declaration
    protected async Task<ActionResult<PagedViewModel<FileSystemTreeItemPresentationModel>>> GetRoot(int skip, int take)
    Parameters
    Type Name Description
    System.Int32 skip
    System.Int32 take
    Returns
    Type Description
    Task<ActionResult<PagedViewModel<FileSystemTreeItemPresentationModel>>>
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • FileSystem
    • Methods
      • DirectoryHasChildren(String)
      • GetAncestorModels(String, Boolean)
      • GetAncestors(String, Boolean)
      • GetChildren(String, Int32, Int32)
      • GetDirectories(String)
      • GetFiles(String)
      • GetRoot(Int32, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX