# API Reference

> API reference for @anymux/webdav.

Source: https://anymux-docs.n.yatsyk.com/docs/webdav/api

# API Reference

## `WebDavFileSystem`

Implements `IFileSystem` using a WebDAV server as the backing store.

### Constructor

```ts
new WebDavFileSystem(options: WebDavFileSystemOptions)
```

### Options

| Option     | Type                   | Description             |
| ---------- | ---------------------- | ----------------------- |
| `url`      | `string`               | WebDAV server URL       |
| `username` | `string?`              | Authentication username |
| `password` | `string?`              | Authentication password |
| `authType` | `"basic" \| "digest"?` | Authentication method   |

### Methods

Implements all `IFileSystem` methods: `readFile`, `writeFile`, `readDir`, `stat`, `mkdir`, `rm`, `exists`.
