|
PeanutButter
|
Public Member Functions | |||||||
| LocalFileSystem () | |||||||
| Starts a local filesystem in the current working folder. | |||||||
| LocalFileSystem (string start) | |||||||
| Starts a local filesystem in the provided starting folder. | |||||||
| IEnumerable< string > | List (string searchPattern="*") | ||||||
List any items within the root of the current filesystem, with an optional search pattern.
| |||||||
| IEnumerable< string > | ListFiles (string searchPattern="*") | ||||||
List files within the root of the current filesystem, with an optional search pattern.
| |||||||
| IEnumerable< string > | ListFolders (string searchPattern="*") | ||||||
List directories within the root of the current filesystem, with an optional search pattern.
| |||||||
| IEnumerable< string > | ListRecursive (string searchPattern="*") | ||||||
List any any items recursively from the root of the current filesystem downward, with an optional search pattern.
| |||||||
| IEnumerable< string > | ListFilesRecursive (string searchPattern="*") | ||||||
List files items recursively from the root of the current filesystem downward, with an optional search pattern.
| |||||||
| IEnumerable< string > | ListFoldersRecursive (string searchPattern="*") | ||||||
List folders items recursively from the root of the current filesystem downward, with an optional search pattern.
| |||||||
| string | GetCurrentDirectory () | ||||||
Retrieves the current working directory within the filesystem.
| |||||||
| void | SetCurrentDirectory (string path) | ||||||
Set the current working directory within the filesystem.
| |||||||
| void | Delete (string path) | ||||||
Delete a folder or file within the filesystem.
| |||||||
| void | DeleteRecursive (string path) | ||||||
Recursively delete a folder (or nuke a file)
| |||||||
| void | Copy (string sourcePath) | ||||||
Copy the file at the provided sourcePath into the current folder.
| |||||||
| void | Copy (string sourcePath, string targetPath) | ||||||
Copy the file at the source path to the target path.
| |||||||
| Stream | OpenReader (string path) | ||||||
Open a stream-reader to the provided file path.
| |||||||
| Stream | OpenWriter (string path) | ||||||
Open a stream-writer to the provided file path.
| |||||||
| Stream | Open (string targetPath) | ||||||
Open a target path with all options (read-write) without destroying it.
| |||||||
| void | Move (string source, string target, bool overwrite=false) | ||||||
Move a file or.
| |||||||
| string | GetFullPathFor (string relativePath) | ||||||
Provides the full local path for the provided relative path.
| |||||||
| bool | FileExists (string path) | ||||||
Test if a file exists.
| |||||||
| bool | FolderExists (string path) | ||||||
Test if a folder exists.
| |||||||
| PeanutButter.FileSystem.LocalFileSystem.LocalFileSystem | ( | string | start | ) |
Starts a local filesystem in the provided starting folder.
| start |
| void PeanutButter.FileSystem.LocalFileSystem.Copy | ( | string | sourcePath | ) |
Copy the file at the provided sourcePath into the current folder.
| sourcePath |
Implements PeanutButter.FileSystem.IFileSystem.
| void PeanutButter.FileSystem.LocalFileSystem.Copy | ( | string | sourcePath, |
| string | targetPath ) |
Copy the file at the source path to the target path.
| sourcePath | |
| targetPath |
Implements PeanutButter.FileSystem.IFileSystem.
| void PeanutButter.FileSystem.LocalFileSystem.Delete | ( | string | path | ) |
Delete a folder or file within the filesystem.
| path |
Implements PeanutButter.FileSystem.IFileSystem.
| void PeanutButter.FileSystem.LocalFileSystem.DeleteRecursive | ( | string | path | ) |
Recursively delete a folder (or nuke a file)
| path |
Implements PeanutButter.FileSystem.IFileSystem.
| bool PeanutButter.FileSystem.LocalFileSystem.FileExists | ( | string | path | ) |
| bool PeanutButter.FileSystem.LocalFileSystem.FolderExists | ( | string | path | ) |
| string PeanutButter.FileSystem.LocalFileSystem.GetCurrentDirectory | ( | ) |
Retrieves the current working directory within the filesystem.
Implements PeanutButter.FileSystem.IFileSystem.
| string PeanutButter.FileSystem.LocalFileSystem.GetFullPathFor | ( | string | relativePath | ) |
Provides the full local path for the provided relative path.
| relativePath |
Implements PeanutButter.FileSystem.IFileSystem.
| IEnumerable< string > PeanutButter.FileSystem.LocalFileSystem.List | ( | string | searchPattern = "*" | ) |
List any items within the root of the current filesystem, with an optional search pattern.
| searchPattern |
Implements PeanutButter.FileSystem.IFileSystem.
| IEnumerable< string > PeanutButter.FileSystem.LocalFileSystem.ListFiles | ( | string | searchPattern = "*" | ) |
List files within the root of the current filesystem, with an optional search pattern.
| searchPattern |
Implements PeanutButter.FileSystem.IFileSystem.
| IEnumerable< string > PeanutButter.FileSystem.LocalFileSystem.ListFilesRecursive | ( | string | searchPattern = "*" | ) |
List files items recursively from the root of the current filesystem downward, with an optional search pattern.
| searchPattern |
Implements PeanutButter.FileSystem.IFileSystem.
| IEnumerable< string > PeanutButter.FileSystem.LocalFileSystem.ListFolders | ( | string | searchPattern = "*" | ) |
List directories within the root of the current filesystem, with an optional search pattern.
| searchPattern |
Implements PeanutButter.FileSystem.IFileSystem.
| IEnumerable< string > PeanutButter.FileSystem.LocalFileSystem.ListFoldersRecursive | ( | string | searchPattern = "*" | ) |
List folders items recursively from the root of the current filesystem downward, with an optional search pattern.
| searchPattern |
Implements PeanutButter.FileSystem.IFileSystem.
| IEnumerable< string > PeanutButter.FileSystem.LocalFileSystem.ListRecursive | ( | string | searchPattern = "*" | ) |
List any any items recursively from the root of the current filesystem downward, with an optional search pattern.
| searchPattern |
Implements PeanutButter.FileSystem.IFileSystem.
| void PeanutButter.FileSystem.LocalFileSystem.Move | ( | string | source, |
| string | target, | ||
| bool | overwrite = false ) |
| Stream PeanutButter.FileSystem.LocalFileSystem.Open | ( | string | targetPath | ) |
Open a target path with all options (read-write) without destroying it.
| targetPath |
Implements PeanutButter.FileSystem.IFileSystem.
| Stream PeanutButter.FileSystem.LocalFileSystem.OpenReader | ( | string | path | ) |
Open a stream-reader to the provided file path.
| path |
Implements PeanutButter.FileSystem.IFileSystem.
| Stream PeanutButter.FileSystem.LocalFileSystem.OpenWriter | ( | string | path | ) |
Open a stream-writer to the provided file path.
| path |
Implements PeanutButter.FileSystem.IFileSystem.
| void PeanutButter.FileSystem.LocalFileSystem.SetCurrentDirectory | ( | string | path | ) |
Set the current working directory within the filesystem.
| path |
Implements PeanutButter.FileSystem.IFileSystem.