Summary
Represents a file system.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .IO - Implementing Types
graph BT
Type["IReadOnlyFileSystem"]
class Type type-node
Implementing0["TestFileSystem"]-.->Type
click Implementing0 "/api/Wyam.Testing.IO/TestFileSystem"
Implementing1["IFileSystem"]-.->Type
click Implementing1 "/api/Wyam.Common.IO/IFileSystem"
Syntax
public interface IReadOnlyFileSystem
Properties
Name | Value | Summary |
---|---|---|
FileProviders | I |
Gets the file providers.
|
InputPaths | IReadOnlyList |
Gets the input paths. These are searched in reverse order for
files and directories. For example, given input paths "A", "B",
and "C" in that order, "C" will be checked for a requested file
or directory first, and then if it doesn't exist in "C", "B"
will be checked, and then "A". If none of the input paths contain
the requested file or directory, the last input path (in this case,
"C") will be used as the location of the requested non-existent file
or directory. If you attempt to create it at this point, it will be
created under path "C".
|
OutputPath | DirectoryPath |
Gets the output path.
|
RootPath | DirectoryPath |
Gets the root path.
|
TempPath | DirectoryPath |
Gets the temporary file path.
|
Methods
Name | Value | Summary |
---|---|---|
Get |
DirectoryPath |
Gets the absolute input path that contains the specified file or directory. If the provided
file or directory path is absolute, this returns the input path that contains the specified
path (note that the specified file or directory does not need to exist and this just returns
the input path that would contain the file or directory based only on path information). If
the provided path is relative, this checks all input paths for the existence of the file
or directory and returns the first one where it exists.
|
GetDirectory |
IDirectory |
Gets an absolute directory.
|
GetFile |
IFile |
Gets an absolute file.
|
GetFileProvider |
IFileProvider |
Gets the registered file provider for a specified path.
|
GetFiles |
IEnumerable |
Gets matching files based on globbing patterns and/or absolute paths. If any absolute paths
are provided, only those that actually exist are returned.
|
GetFiles |
IEnumerable |
Gets matching files based on globbing patterns and/or absolute paths. If any absolute paths
are provided, only those that actually exist are returned.
|
GetFiles |
IEnumerable |
Gets matching files based on globbing patterns from the root path or absolute paths.
|
GetFiles |
IEnumerable |
Gets matching files based on globbing patterns from the root path or absolute paths.
|
GetInputDirectories |
IReadOnlyList |
Gets all absolute input directories.
|
GetInputDirectory |
IDirectory |
Gets a directory representing an input.
|
GetInputFile |
IFile |
Gets a file representing an input.
|
GetInputFiles |
IEnumerable |
Gets matching input files based on globbing patterns and/or absolute paths. If any absolute paths
are provided, only those that actually exist are returned.
|
GetInputFiles |
IEnumerable |
Gets matching input files based on globbing patterns and/or absolute paths. If any absolute paths
are provided, only those that actually exist are returned.
|
GetOutputDirectory |
IDirectory |
Gets a directory representing an output.
|
GetOutputFile |
IFile |
Gets a file representing an output.
|
GetOutputPath |
DirectoryPath |
Gets an output directory path by combining it with the root path and output path.
|
GetOutputPath |
FilePath |
Gets an output file path by combining it with the root path and output path.
|
GetRootDirectory |
IDirectory |
Gets a directory representing a root directory.
|
GetRootFile |
IFile |
Gets a file representing a root file.
|
GetTempDirectory |
IDirectory |
Gets a directory representing temp files.
|
GetTempFile |
IFile |
Gets a file representing a temp file with a random file name.
|
GetTempFile |
IFile |
Gets a file representing a temp file.
|
GetTempPath |
DirectoryPath |
Gets a temp directory path by combining it with the root path and temp path.
|
GetTempPath |
FilePath |
Gets a temp file path by combining it with the root path and temp path.
|