• fileFromURL creates a new File from the provided url by downloading the resource and creating a BytesReader.

    Example:

    // with default max timeout of 120sec
    const file1 = $filesystem.fileFromURL("https://...")

    // with custom timeout of 15sec
    const file2 = $filesystem.fileFromURL("https://...", 15)

    Parameters

    • url: string
    • Optional secTimeout: number

    Returns filesystem.File

Generated using TypeDoc