This project is read-only.

Error in DownloadFile Method

Sep 17, 2012 at 3:16 PM

Hi all,

I have this code to download all files in root directory. It has the type ICloudDirectoryEntry.

foreach (ICloudFileSystemEntry fof in root)
    Boolean bIsDirectory = fof is ICloudDirectoryEntry;

    if (!bIsDirectory)
        DropBoxStorage.DownloadFile(root, fof.Name, Environment.ExpandEnvironmentVariables(target));

However, in the second iteration fails: "Collection was modified; may not run the enumeration operation."

Thank you for your attention,