mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(archival): ♻ add filePath to UoW transaction immediately
This commit is contained in:
parent
5700cb453d
commit
877478b374
1 changed files with 1 additions and 1 deletions
|
|
@ -26,9 +26,9 @@ public async Task ArchiveFileAsync(
|
|||
string filePath,
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
_filePaths.Add(filePath);
|
||||
await using var output = File.OpenWrite(filePath);
|
||||
await fileContents.CopyToAsync(output, cancellationToken);
|
||||
_filePaths.Add(filePath);
|
||||
}
|
||||
|
||||
public void Commit()
|
||||
|
|
|
|||
Loading…
Reference in a new issue