UNPKG

pterowrap

Version:

A node.js wrapper for Pterodactyl API

28 lines (27 loc) 836 B
import ClientInstance from "../../../instance/ClientInstance"; import Server from "../Server"; export default class File { private instance; _parentServer: Server; name: string; mode: string; mode_bits: string; size: number; is_file: boolean; is_symlink: boolean; mimetype: string; created_at: string; modified_at: string; private _path; private _pathw; raw: any; constructor(instance: ClientInstance, data: any, _path: string, _parentServer: Server); retrieveContents(): Promise<any>; retrieveDownloadLink(): Promise<string>; rename(newName: string): Promise<any>; copy(): Promise<unknown>; write(data: any): Promise<unknown>; compress(): Promise<File>; decompress(): Promise<unknown>; delete(): Promise<unknown>; }