I have several giant folders saved in DropBox with over 10k files in them. I want to check if there is a list of files there, but I can not get the metadata in the parent folder, because I'm above the 10k limit.
So, I wrote code to check for the presence of each file in the file list.
I can’t understand how many requests will be executed simultaneously and how can I increase this number to the maximum that my machine can handle?
foreach(string f in files)
{
client.GetMetaDataAsync("/blah/blah/" + f, (response) =>
{
found.Add(f);
count++;
Console.WriteLine("{0} of {1} found - {2}", count, files.Count, f);
},
(error) =>
{
if (error.Message.Contains("[NotFound]"))
{
missing.Add(f);
count++;
Console.WriteLine("{0} of {1} missing - {2}", count, files.Count, f);
}
else
{
Console.WriteLine("Unknown error");
}
});
}
source
share