From f1f4d8284f3c5232e35cd3dc4d1ca14335c07d2d Mon Sep 17 00:00:00 2001 From: "kenneth@hexad.dk" Date: Mon, 14 May 2012 21:13:56 +0000 Subject: [PATCH] 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 --- Duplicati/Library/Main/Interface.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Duplicati/Library/Main/Interface.cs b/Duplicati/Library/Main/Interface.cs index 1167edf52..cfb29206b 100644 --- a/Duplicati/Library/Main/Interface.cs +++ b/Duplicati/Library/Main/Interface.cs @@ -369,10 +369,21 @@ namespace Duplicati.Library.Main CheckLiveControl(); - //This will list all files on the backend and create the target folder - List backupsets = backend.GetBackupSets(); + List 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);