Exemple #1
0
        public static void Download()
        {
            var dest = Global.CWD("latest.zip");

            if (File.Exists(dest))
            {
                File.Delete(dest);
            }
            var url = new PCS_client().GetDownloadUrl("/apps/folder1/latest.zip");
            var d   = new SoftwareDownloader
            {
                Info = new DownloaderInfo
                {
                    Url      = url,
                    FileName = dest,
                }
            };

            d.Download();
        }
Exemple #2
0
 static void Download()
 {
     var dest = Global.CWD("latest.zip");
     if (File.Exists(dest))
         File.Delete(dest);
     var url = new PCS_client().GetDownloadUrl("/apps/folder1/latest.zip");
     var d = new SoftwareDownloader
     {
         Info = new DownloaderInfo
         {
             Url = url,
             FileName = dest,
         }
     };
     d.Download();
 }