@mieweb/wikigdrive
Version:
Google Drive to MarkDown synchronization
22 lines • 1.02 kB
TypeScript
import type { Readable, Writable } from 'node:stream';
import { Buffer } from "node:buffer";
export declare function pathResolve(rootPath: string, ...args: string[]): string;
export declare class FileService {
protected readonly rootPath: string;
constructor(rootPath?: string);
mkdir(dirPath: string): Promise<void>;
rmdir(dirPath: string): Promise<void>;
remove(filePath: any): Promise<void>;
isDirectory(filePath: any): Promise<boolean>;
exists(filePath: string): Promise<boolean>;
getSize(filePath: string): Promise<number>;
getMtime(filePath: string): Promise<number>;
readBuffer(filePath: string): Promise<Buffer>;
writeBuffer(filePath: string, buffer: Buffer): Promise<void>;
createWriteStream(filePath: string): Writable;
createReadStream(filePath: string): Readable;
md5File(filePath: string): Promise<string>;
move(path1: string, path2: string): Promise<void>;
list(dirPath?: string): Promise<string[]>;
}
//# sourceMappingURL=FileService.d.ts.map