UNPKG

@remote.it/core

Version:

Core remote.it JavasScript/TypeScript library

33 lines (32 loc) 674 B
export declare class File { location: string constructor(location: string) /** * Write the given contents to the file. */ write(data?: any): void /** * Reads the content of the file as a string. */ read(): any /** * Remove the file from the filesystem, if it exists. */ remove(): void /** * Returns a boolean whether the file exists or not */ readonly exists: boolean /** * Internal getter to retrieve the content of the file. */ /** * Internal setter to set the content of the file. */ protected content: any /** * Make sure file exists */ private createIfMissing } //# sourceMappingURL=File.d.ts.map