pterodactyl.ts
    Preparing search index...

    Class File

    Implements

    • FileAttributes
    Index

    Constructors

    Properties

    created_at: Date
    dir: string = '/'
    is_file: boolean
    is_symlink: boolean
    mimetype: string
    mode: string
    mode_bits: string
    modified_at: Date
    name: string
    parenServer: Server
    size: number

    Methods

    • Copy this file When copied, 'copy' is appended to the file name.

      Returns Promise<void>

    • Download this file

      Returns Promise<Buffer<ArrayBufferLike>>

    • Rename this file

      Parameters

      • newName: string

      Returns Promise<void>

    • Write new content to this file

      Parameters

      • content: string

      Returns Promise<string>