Class DuetFileProvider
Static file provider that uses DCS to resolve file paths
Implements
Inherited Members
Namespace: DuetWebServer.FileProviders
Assembly: DuetWebServer.dll
Syntax
public class DuetFileProvider : IFileProvider
Constructors
DuetFileProvider(IModelProvider)
Creates a new file resolver instance
Declaration
public DuetFileProvider(IModelProvider modelProvider)
Parameters
Type | Name | Description |
---|---|---|
IModelProvider | modelProvider |
Methods
~DuetFileProvider()
Finalizer of this instance
Declaration
protected ~DuetFileProvider()
GetDirectoryContents(string)
Returns the contents of the given directory
Declaration
public IDirectoryContents GetDirectoryContents(string subpath)
Parameters
Type | Name | Description |
---|---|---|
string | subpath | Target path |
Returns
Type | Description |
---|---|
IDirectoryContents | Directory contents |
GetFileInfo(string)
Gets the file info of the specified path
Declaration
public IFileInfo GetFileInfo(string subpath)
Parameters
Type | Name | Description |
---|---|---|
string | subpath | Target path |
Returns
Type | Description |
---|---|
IFileInfo | File info |
Watch(string)
Creates a token that watches for changes
Declaration
public IChangeToken Watch(string filter)
Parameters
Type | Name | Description |
---|---|---|
string | filter | Watch filter |
Returns
Type | Description |
---|---|
IChangeToken | Change token |