diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2015-12-05 16:21:21 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2015-12-05 16:21:21 +0300 |
commit | 1708dfd581e6f3bd3cef8ac77278c25128a97d6b (patch) | |
tree | 1ec23fa27cf2066c82dd1dab4b8edc7ad9418823 /Duplicati | |
parent | a9e34a16251b7887c8c9e97405a1fdfd285670cd (diff) |
Optimization for AmzCD: don't load files unless required.
Diffstat (limited to 'Duplicati')
-rw-r--r-- | Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs b/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs index c3bdb25a5..d87fa7f68 100644 --- a/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs +++ b/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs @@ -286,7 +286,8 @@ namespace Duplicati.Library.Backend.AmazonCloudDrive }
);
- FileCache[item.Name] = item.ID;
+ if (m_filecache != null)
+ m_filecache[item.Name] = item.ID;
}
catch(Exception ex)
{
@@ -350,7 +351,7 @@ namespace Duplicati.Library.Backend.AmazonCloudDrive // Docs say to check for empty response ...
//if (lst.Count < PAGE_SIZE)
// break;
- } while(nextToken != null)
+ } while(nextToken != null);
m_filecache = cache;
return res;
|