Interface IDirectoryHandler
Interface implemented by unified EPiServer directory handlers
Namespace: EPiServer.Web.Hosting.Versioning
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public interface IDirectoryHandler
Properties
Name
Gets the name of the directory
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
Methods
CreateFile(String)
Creates a file in current directory
Declaration
IFileHandler CreateFile(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| IFileHandler | A handler to the created file |
CreateSubdirectory(String)
Creates a subdirectory.
Declaration
IDirectoryHandler CreateSubdirectory(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | The path. |
Returns
| Type | Description |
|---|---|
| IDirectoryHandler | A handler to the created directory |
Delete()
Deletes this directory.
Declaration
void Delete()
GetDirectories()
Gets the sub directories.
Declaration
IDirectoryHandler[] GetDirectories()
Returns
| Type | Description |
|---|---|
| IDirectoryHandler[] |
GetFiles()
Gets the files in the directory
Declaration
IFileHandler[] GetFiles()
Returns
| Type | Description |
|---|---|
| IFileHandler[] |
MoveTo(IDirectoryHandler)
Moves the directory to the specified directory
Declaration
void MoveTo(IDirectoryHandler dir)
Parameters
| Type | Name | Description |
|---|---|---|
| IDirectoryHandler | dir | The dir. |
Rename(String)
Renames the directory to the specified new name.
Declaration
void Rename(string newName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | newName | The new name. |