public void DownloadFileMode(string Folder, string FileName, string GoogleDir = "") { DriveAPIAccess DAA = new DriveAPIAccess(); DAA = new DriveAPIAccess(); Console.WriteLine("Iniciando Download Automata"); string FullPath = AuxFileCommCenter.AdjustPath(Folder, FileName); DAA.DoDownload(FullPath).Wait(); }
public void UploadFileMode(string Folder, string FileName, string GoogleDir = "") { DriveAPIAccess DAA = new DriveAPIAccess(); Console.WriteLine("Iniciando Upload Automata"); string FullPath = AuxFileCommCenter.AdjustPath(Folder, FileName); if (string.IsNullOrEmpty(GoogleDir)) { GoogleDir = null; } DAA.DoUpload(FullPath, GoogleDir).Wait(); }