Метод | Описание | |
---|---|---|
DiskFileService ( string rootUri, string rootFilePath, bool substituteGzipFiles = false ) : System |
Initializes a new instance of the CompositeFileService class.
|
|
GetDirectories ( |
Gets a list of all sub directores
|
|
GetFile ( Griffin.WebServer.Files.FileContext context ) : bool |
Get a file
|
|
GetFiles ( |
Get all files that exists in the specified directory
|
|
IsDirectory ( |
Gets if the specified url corresponds to a directory serving files
|
Метод | Описание | |
---|---|---|
GetDefaultFile ( ) : string | ||
GetFullPath ( |
public DiskFileService ( string rootUri, string rootFilePath, bool substituteGzipFiles = false ) : System | ||
rootUri | string | Serve all files which are located under this URI |
rootFilePath | string | Path to serve files from. |
substituteGzipFiles | bool | When enabled, if a file is requested and a file with the same name + .gz exists, that version will be served instead (so long as the client supports this) |
Результат | System |
public GetDirectories ( |
||
uri | URI (as requested by the HTTP client) which should correspond to a directory. | |
Результат | IEnumerable |
public GetFile ( Griffin.WebServer.Files.FileContext context ) : bool | ||
context | Griffin.WebServer.Files.FileContext | Context used to locate and return files |
Результат | bool |
public GetFiles ( |
||
uri | Uri | |
Результат | IEnumerable |
public IsDirectory ( |
||
uri | Uri | |
Результат | bool |