@markg85/webdav-server
Version:
17 lines (16 loc) • 971 B
TypeScript
import { IResource, ReturnCallback } from '../IResource';
import { FSManager, FSPath } from '../../../manager/v1/FSManager';
import { PhysicalResource } from './PhysicalResource';
import { MethodCallArgs } from '../../../server/v1/MethodCallArgs';
import { PhysicalFolder } from './PhysicalFolder';
export declare class PhysicalGateway extends PhysicalFolder {
cache: {
[path: string]: PhysicalResource;
};
customName: string;
constructor(rootPath: string, customName?: string, parent?: IResource, fsManager?: FSManager);
webName(callback: ReturnCallback<string>): void;
protected listChildren(parent: PhysicalResource, rpath: string, callback: (error: Error, children?: IResource[]) => void): void;
protected find(path: FSPath, callback: (error: Error, resource?: PhysicalResource) => void, forceRefresh?: boolean): void;
gateway(arg: MethodCallArgs, path: FSPath, callback: (error: Error, resource?: IResource) => void): void;
}