Skip to content

Commit

Permalink
make sure directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskueffel committed Nov 1, 2023
1 parent 43a69bc commit 0ee9569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FileSyncLibNet/SyncProviders/FileIOProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public override void SyncSourceToDest()
try
{
logger.LogDebug("Copy {A}", relativeFilename);
Directory.CreateDirectory(Path.GetDirectoryName(remotefile.FullName));
File.Copy(f.FullName, remotefile.FullName, true);
copied++;
if (jobOptions.DeleteSourceAfterBackup)
Expand Down

0 comments on commit 0ee9569

Please sign in to comment.