mcp-quickbase
Version:
Work with Quickbase via Model Context Protocol
38 lines (37 loc) • 1.15 kB
TypeScript
/**
* Check if a file exists
* @param filePath File path to check
* @returns True if the file exists
*/
export declare function fileExists(filePath: string): boolean;
/**
* Ensure a directory exists, creating it if necessary
* @param dirPath Directory path to ensure
* @returns True if the directory exists or was created
*/
export declare function ensureDirectoryExists(dirPath: string): boolean;
/**
* Get information about a file
* @param filePath File path
* @returns File information or null if the file doesn't exist
*/
export declare function getFileInfo(filePath: string): {
name: string;
size: number;
extension: string;
mimeType: string;
lastModified: Date;
} | null;
/**
* Read a file as a Buffer
* @param filePath File path
* @returns File contents as Buffer or null if an error occurs
*/
export declare function readFileAsBuffer(filePath: string): Buffer | null;
/**
* Write data to a file
* @param filePath File path to write to
* @param data Data to write
* @returns True if the file was written successfully
*/
export declare function writeFile(filePath: string, data: Buffer | string): boolean;