@wocker/core
Version:
Core of the Wocker
14 lines (13 loc) • 555 B
TypeScript
import FS from "fs";
import { FileSystem } from "./FileSystem";
import { FileSystemDriver } from "../types";
export declare class FileSystemManager {
protected readonly fs: FileSystemDriver;
readonly source: FileSystem;
readonly destination: FileSystem;
constructor(source: string, destination: string, fs?: FileSystemDriver);
exists(...parts: string[]): boolean;
mkdir(path: string, options?: FS.MakeDirectoryOptions): void;
copy(path: string, options?: FS.CopySyncOptions): void;
copyFile(path: string): Promise<void>;
}