Summary
Represents a directory.
- Namespace
- Cake
.Core .IO - Interfaces
- Implementing Types
graph BT
Type-.->Interface0["IFileSystemInfo"]
click Interface0 "/api/Cake.Core.IO/IFileSystemInfo"
Type["IDirectory"]
class Type type-node
Implementing0["FakeDirectory"]-.->Type
click Implementing0 "/api/Cake.Testing/FakeDirectory"
Syntax
public interface IDirectory : IFileSystemInfo
Properties
Name | Value | Summary |
---|---|---|
Path | DirectoryPath |
Gets the path to the directory.
|
Methods
Name | Value | Summary |
---|---|---|
Create |
void |
Creates the directory.
|
Delete |
void |
Deletes the directory.
|
GetDirectories |
IEnumerable |
Gets directories matching the specified filter and scope.
|
GetFiles |
IEnumerable |
Gets files matching the specified filter and scope.
|
Move |
void |
Moves the directory to the specified destination path.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
GetDirectories |
IEnumerable |
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
From DirectoryExtensions
|
GetDirectories |
IEnumerable |
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
From DirectoryExtensions
|
GetFiles |
IEnumerable |
Gets files matching the specified filter and scope.
From DirectoryExtensions
|
GetFiles |
IEnumerable |
Gets files matching the specified filter and scope.
From DirectoryExtensions
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|