DataUtil Module

Contains auto-opened utilities related to the dfx programming model.

Functions and values

Function or value Description

download url localFileName

Full Usage: download url localFileName

Parameters:
    url : string
    localFileName : string

Synchronously downloads the given URL to the given local file.

url : string
localFileName : string

extractTarGz fileName outputDir

Full Usage: extractTarGz fileName outputDir

Parameters:
    fileName : string
    outputDir : string

Extracts the given .tar.gz file to the given directory.

fileName : string
outputDir : string

extractTarStream stream outputDir

Full Usage: extractTarStream stream outputDir

Parameters:
    stream : Stream
    outputDir : string

Extracts the tar archive in the given stream to the given directory.

stream : Stream
outputDir : string

© Copyright 2021, DiffSharp and dfx Contributors.