Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IFileWithFoldersRepository

    Represents a repository for file operations with folder support.

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IFileWithFoldersRepository

    Methods

    View Source

    AddFolder(string)

    Adds a new folder.

    Declaration
    void AddFolder(string folderPath)
    Parameters
    Type Name Description
    string folderPath

    The path of the folder to add.

    View Source

    DeleteFolder(string)

    Deletes a folder.

    Declaration
    void DeleteFolder(string folderPath)
    Parameters
    Type Name Description
    string folderPath

    The path of the folder to delete.

    View Source

    FolderExists(string)

    Checks whether a folder exists.

    Declaration
    bool FolderExists(string folderPath)
    Parameters
    Type Name Description
    string folderPath

    The path of the folder.

    Returns
    Type Description
    bool

    true if the folder exists; otherwise, false.

    View Source

    FolderHasContent(string)

    Checks whether a folder contains any content.

    Declaration
    bool FolderHasContent(string folderPath)
    Parameters
    Type Name Description
    string folderPath

    The path of the folder.

    Returns
    Type Description
    bool

    true if the folder contains content; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX