IFileSystem Interface

Summary

Represents a file system.
Namespace
Cake.Core.IO
Implementing Types
graph BT Type["IFileSystem"] class Type type-node Implementing0["FileSystem"]-.->Type click Implementing0 "/api/Cake.Core.IO/FileSystem" Implementing1["FakeFileSystem"]-.->Type click Implementing1 "/api/Cake.Testing/FakeFileSystem"

Syntax

public interface IFileSystem

Methods

Name Value Summary
GetDirectory(DirectoryPath) IDirectory
Gets a IDirectory instance representing the specified path.
GetFile(FilePath) IFile
Gets a IFile instance representing the specified path.

Extension Methods

Name Value Summary
Dump<IFileSystem>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
Exist(DirectoryPath) bool
Determines if a specified DirectoryPath exist.
Exist(FilePath) bool
Determines if a specified FilePath exist.
IsIn<IFileSystem>(IFileSystem[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IFileSystem>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<IFileSystem>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<IFileSystem>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<IFileSystem>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin