Пример #1
0
        public static bool Download(DownloadWindow dl, string hashSt, string exest, string destination)
        {
            if (!Directory.Exists(destination))
            {
                Directory.CreateDirectory(destination);
            }

            dl.syncStatus("Downloading: " + exest);

            string command = " --fc \"" + destination + "\" --fi \"" + destination + "\" --ft \"" + destination + "\" --fs \"" + destination + "\" " + hashSt + "\"";

            BitSwarm(command);

            dl.syncStatus("Download Complete: " + exest);

            return(true);
        }