private static bool SafeMoveFile(string tempFile, FileProperties file)
        {
            if (!File.Exists(tempFile))
            {
                return(false);
            }

            var dst = file.Path + file.FileName + "." + file.Extension;

            int i = 0;

            while (File.Exists(dst))
            {
                dst = $"{file.Path}{file.FileName} ({++i}).{file.Extension}";
            }

            File.Move(tempFile, dst);
            return(true);
        }
 public Downloader(FileProperties file)
 {
     _file    = file;
     _tracker = new DownloadTracker();
 }