Skip to main content
Glama
webdav.ts777 B
import { WebDAVClient } from '../client/webdav'; import { getClient } from '../app'; export async function nc_webdav_list_directory(path: string): Promise<any> { return getClient(WebDAVClient).listDirectory(path); } export async function nc_webdav_read_file(path: string): Promise<string> { return getClient(WebDAVClient).readFile(path); } export async function nc_webdav_write_file( path: string, content: string ): Promise<void> { await getClient(WebDAVClient).writeFile(path, content); } export async function nc_webdav_create_directory(path: string): Promise<void> { await getClient(WebDAVClient).createDirectory(path); } export async function nc_webdav_delete_resource(path: string): Promise<void> { await getClient(WebDAVClient).deleteResource(path); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hithereiamaliff/mcp-nextcloud'

If you have feedback or need assistance with the MCP directory API, please join our Discord server