UNPKG

media-exporter-processor

Version:

Media processing API with thumbnail generation and cloud storage

35 lines 1 kB
export declare class FileUtils { /** * Generate a unique temporary file path */ static generateTempPath(extension?: string): string; /** * Write buffer to temporary file and return the path */ static writeToTempFile(buffer: Buffer, extension?: string): Promise<string>; /** * Clean up multiple files, ignoring errors */ static cleanupFiles(filePaths: string[]): Promise<void>; /** * Check if file exists */ static fileExists(filePath: string): Promise<boolean>; /** * Get file size in bytes */ static getFileSize(filePath: string): Promise<number>; /** * Extract filename from path without extension */ static getBasename(filePath: string): string; /** * Get file extension from path */ static getExtension(filePath: string): string; /** * Ensure directory exists */ static ensureDir(dirPath: string): Promise<void>; } //# sourceMappingURL=FileUtils.d.ts.map