FileSystem Class

Summary

A physical file system implementation.
Namespace
Cake.Core.IO
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IFileSystem"] click Interface0 "/api/Cake.Core.IO/IFileSystem" Type["FileSystem"] class Type type-node

Syntax

public sealed class FileSystem : 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<FileSystem>() 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<FileSystem>(FileSystem[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<FileSystem>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<FileSystem>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<FileSystem>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<FileSystem>(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
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin