Interface IDirectoryOperationsService
Defines a service for managing directory operations.
Namespace: Coree.NETStandard.Services.DirectoryOperationsManagement
Assembly: Coree.NETStandard.dll
Syntax
public interface IDirectoryOperationsService
Methods
| Edit this page View SourceEnsureDirectory(string)
Ensures that a specified directory exists, creating it if necessary.
Declaration
bool EnsureDirectory(string directory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | directory | The path of the directory to check and create if necessary. |
Returns
| Type | Description |
|---|---|
| bool | true if the directory exists or was successfully created; otherwise, false. |