Interface IFileLocator
The file locator interface.
Inherited Members
Namespace: JeremyAnsel.IO.Locator
Assembly: JeremyAnsel.IO.Locator.dll
Syntax
public interface IFileLocator : IDisposable
Methods
| Edit this page View SourceEnumerateFiles()
Enumerate the files.
Declaration
IEnumerable<string> EnumerateFiles()
Returns
Type | Description |
---|---|
IEnumerable<string> | An enumeration. |
EnumerateFiles(string)
Enumerate the files.
Declaration
IEnumerable<string> EnumerateFiles(string root)
Parameters
Type | Name | Description |
---|---|---|
string | root | The root path. |
Returns
Type | Description |
---|---|
IEnumerable<string> | An enumeration. |
Exists(string)
Indicates whether the specified path exists.
Declaration
bool Exists(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | A path. |
Returns
Type | Description |
---|---|
bool | A boolean. |
Open(string)
Open a file.
Declaration
Stream Open(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | A path. |
Returns
Type | Description |
---|---|
Stream | A stream. |