Skip to content

Commit 463261c

Browse files
fix recursive scp sync
1 parent 4638847 commit 463261c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FileSyncLibNet/AccessProviders/ScpAccessProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public List<FileInfo2> GetFiles(DateTime minimumLastWriteTime, string pattern, s
153153
{
154154
foreach (var folder in files.Where(x => x.IsDirectory && !(x.Name == ".") && !(x.Name == "..")))
155155
{
156-
var subPath = System.IO.Path.Combine(folder.Name).Replace("\\", "/");
156+
var subPath = System.IO.Path.Combine(basePath, folder.Name).Replace("\\", "/");
157157
ret_val.AddRange(GetFiles(minimumLastWriteTime, pattern, subPath, recursive));
158158
}
159159
}

0 commit comments

Comments
 (0)