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 SourceAddFolder(string)
Adds a new folder.
Declaration
void AddFolder(string folderPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | folderPath | The path of the folder to add. |
DeleteFolder(string)
Deletes a folder.
Declaration
void DeleteFolder(string folderPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | folderPath | The path of the folder to delete. |
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 |
|
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 |
|