Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }