add method to add filelist file
This is part of correcting the way the dlist zip file is created. We now have a method to take the memorystream and put the file into dlist.
This commit is contained in:
@@ -18,7 +18,6 @@ using System;
|
||||
using System.Threading.Tasks;
|
||||
using CoCoL;
|
||||
using Duplicati.Library.Main.Volumes;
|
||||
using System.IO;
|
||||
|
||||
namespace Duplicati.Library.Main.Operation.Backup
|
||||
{
|
||||
@@ -63,6 +62,9 @@ namespace Duplicati.Library.Main.Operation.Backup
|
||||
return;
|
||||
|
||||
await db.WriteFilesetAsync(filesetvolume, filesetid);
|
||||
|
||||
filesetvolume.AddFilelistFile();
|
||||
|
||||
filesetvolume.Close();
|
||||
|
||||
if (!await taskreader.ProgressAsync)
|
||||
|
||||
@@ -111,6 +111,8 @@ namespace Duplicati.Library.Main.Operation.Backup
|
||||
foreach(var p in options.ControlFiles.Split(new char[] { System.IO.Path.PathSeparator }, StringSplitOptions.RemoveEmptyEntries))
|
||||
fsw.AddControlFile(p, options.GetCompressionHintFromFilename(p));
|
||||
|
||||
fsw.AddFilelistFile();
|
||||
|
||||
var newFilesetID = await database.CreateFilesetAsync(fsw.VolumeID, fileTime);
|
||||
await database.LinkFilesetToVolumeAsync(newFilesetID, fsw.VolumeID);
|
||||
await database.AppendFilesFromPreviousSetAsync(null, newFilesetID, prevId, fileTime);
|
||||
|
||||
Reference in New Issue
Block a user