Exemplo n.º 1
0
        /// <summary>
        /// Creer un dossier sur un cloud
        /// </summary>
        /// <param name="drive"></param>
        /// <param name="path"></param>
        /// <returns></returns>
        public bool CreateFolder(Drive drive, string path, string nameFolder)
        {
            try
            {
                switch (drive)
                {
                case Drive.DP:
                    DBB.CreateFolder(path);
                    break;

                case Drive.GG:
                    Google.CreateFolder(nameFolder);
                    break;
                }
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }