@timothy-spaceman/multitrack-vcs
Version:
Version Control System for musicians
17 lines (16 loc) • 794 B
TypeScript
import { IStorageProvider } from "../types.js";
import { File } from "../file.js";
export declare class FsStorageProvider implements IStorageProvider {
constructor();
exists(path: string): Promise<boolean>;
isFile(path: string): Promise<boolean>;
readFile(filePath: string): Promise<File>;
createFile(filePath: string, content: Buffer): Promise<File>;
moveFile(sourcePath: string, targetPath: string): Promise<File>;
copyFile(sourcePath: string, targetPath: string): Promise<File>;
isDir(path: string): Promise<boolean>;
readDir(dirPath: string, ignore?: string[]): Promise<string[]>;
readDirDeep(dirPath: string, ignore?: string[]): Promise<string[]>;
createDir(dirPath: string): Promise<string>;
deleteFileOrDir(path: string): Promise<void>;
}