Skip to content

Commit 0ee9569

Browse files
make sure directory exists
1 parent 43a69bc commit 0ee9569

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

FileSyncLibNet/SyncProviders/FileIOProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public override void SyncSourceToDest()
5757
try
5858
{
5959
logger.LogDebug("Copy {A}", relativeFilename);
60+
Directory.CreateDirectory(Path.GetDirectoryName(remotefile.FullName));
6061
File.Copy(f.FullName, remotefile.FullName, true);
6162
copied++;
6263
if (jobOptions.DeleteSourceAfterBackup)

0 commit comments

Comments
 (0)