static void Main(string[] args) { CleanFolder(); settings = new DropboxSettings(); dbx = new DropboxClient(settings.token); Task task = Task.Run(DownloadFolder); task.Wait(); task = Task.Run(Decompress); task.Wait(); File.Delete(zipPath); Console.WriteLine("Suppression du dossier compressé"); // Generating final JPEGS ConvertToFormat(); // Show files to user for transfer Process.Start("explorer.exe", Path.GetFullPath(outPath)); Console.WriteLine("Terminé - Appuyez sur une touche pour supprimer les fichiers"); Console.ReadKey(); CleanFolder(); }
protected override void AddPlugins(ItemModel source, Endpoint endpoint) { // //create the plugin var settings = new DropboxSettings(); // //populate the plugin using values from the item settings.DropboxUrl = GetStringValue(source, DropboxEndpointItemModel.DropboxUrl); // //add the plugin to the endpoint endpoint.Plugins.Add(settings); }
protected override void AddPlugins(ItemModel source, Endpoint endpoint) { // //create the plugin var settings = new DropboxSettings(); // //populate the plugin using values from the item settings.ApplicationName = base.GetStringValue(source, DropboxEndpointItemModel.ApplicationName); settings.AccessToken = base.GetStringValue(source, DropboxEndpointItemModel.AccessToken); settings.RootPath = base.GetStringValue(source, DropboxEndpointItemModel.RootPath); //add the plugin to the endpoint endpoint.Plugins.Add(settings); }
public ProxiedRenameFileDropboxRequest(DropboxSettings settings, string newFileName) : base(settings) { NewFileName = newFileName; }
public ProxiedDeleteFileDropboxRequest(DropboxSettings settings) : base(settings) { }
public ProxiedListDirectoryDropboxRequest(DropboxSettings settings) : base(settings) { }
public ProxiedBaseDropboxRequest(DropboxSettings settings) { Settings = settings; }