Class DownloadableFile
This represent a file that can be downloaded from the internet
public class DownloadableFile
- Inheritance
-
DownloadableFile
- Inherited Members
Constructors
DownloadableFile(string, string, string)
Create a downloadable file from the url
public DownloadableFile(string url, string localSubfolder, string sha256Hash = null)
Parameters
url
stringThe url where the file can be downloaded from
localSubfolder
stringThe sub-folder to store the model
sha256Hash
stringThe SHA256 has for the file.
Properties
IsLocalFileValid
Return true if the local file exist and match the sha256hash (if specified in the constructor).
public bool IsLocalFileValid { get; }
Property Value
LocalFile
The local file name
public string LocalFile { get; set; }
Property Value
LocalFolder
Return the directory where the local file is
public string LocalFolder { get; }
Property Value
Url
The url where this file can be downloaded from
public string Url { get; }
Property Value
Methods
GetLocalFileName(string)
The local path to the local file given the file name
public string GetLocalFileName(string fileName)
Parameters
fileName
stringThe name of the file
Returns
- string
The local path of the file