Merged r1285 into 1.3.2 branch

git-svn-id: https://duplicati.googlecode.com/svn/branches/1.3.2@1286 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
kenneth@hexad.dk
2012-05-14 21:13:56 +00:00
parent 8aedccfb0a
commit f1f4d8284f
+14 -3
View File
@@ -369,10 +369,21 @@ namespace Duplicati.Library.Main
CheckLiveControl();
//This will list all files on the backend and create the target folder
List<ManifestEntry> backupsets = backend.GetBackupSets();
List<ManifestEntry> backupsets;
if (backupsets.Count == 0 || full)
if (full)
{
//This will create the target folder
backend.List(false);
backupsets = null;
}
else
{
//This will list all files on the backend and create the target folder
backupsets = backend.GetBackupSets();
}
if (backupsets.Count == 0)
{
if (!full)
bs.SetTypeReason(Strings.Interface.FullBecauseBackendIsEmpty);