• 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