# HttpFileServerHandler constructor

Kind: Constructor  
Namespace: `Sisk.Core.Http.FileSystem`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Http.FileSystem.HttpFileServerHandler.-ctor.html

## HttpFileServerHandler(string) {#Sisk_Core_Http_FileSystem_HttpFileServerHandler__ctor_System_String_}

Initializes a new instance of the [HttpFileServerHandler](https://docs.sisk-framework.org/api/Sisk.Core.Http.FileSystem.HttpFileServerHandler.md) class with the specified root directory.

```csharp
public HttpFileServerHandler(string rootDirectory)
```

### Parameters

`rootDirectory` [string](https://learn.microsoft.com/dotnet/api/system.string)

The root directory path to serve files from.

## HttpFileServerHandler() {#Sisk_Core_Http_FileSystem_HttpFileServerHandler__ctor}

Initializes a new instance of the [HttpFileServerHandler](https://docs.sisk-framework.org/api/Sisk.Core.Http.FileSystem.HttpFileServerHandler.md) class using the current working directory as the root.

```csharp
public HttpFileServerHandler()
```
