SFTP.DownloadFiles, literal %SourceRelativeDirectory% folder is created
Task full name: Frends.SFTP.DownloadFiles.SFTP.DownloadFiles Task version: 4.1.0 Frends version: 6.0.3 .NET platform: .NET8 Operating system: Windows Summary: When using DownloadFiles with IncludeSubdirectories enabled and %SourceRelativeDirectory% in Destination.Directory, the files are downloaded to the correct relative destination paths, but an additional empty directory named literally "%SourceRelativeDirectory%" is also created. Expected behaviour: The task should download files recursively and preserve the source directory structure under the configured destination directory. Example: Source.Directory = /customer/out Destination.Directory = D:\Integration\Customer\Out\%SourceRelativeDirectory% A source file: /customer/out/reports/monthly/file.csv should be downloaded to: D:\Integration\Customer\Out\reports\monthly\file.csv No directory named "%SourceRelativeDirectory%" should be created. Actual behaviour: The file is downloaded to the correct destination path, for example: D:\Integration\Customer\Out\reports\monthly\file.csv However, the task also creates an additional empty directory: D:\Integration\Customer\Out\%SourceRelativeDirectory% Steps to reproduce: Configure Frends.SFTP.DownloadFiles.SFTP.DownloadFiles. Use recursive source download: Source.Directory = /customer/out Source.FileName = * Source.IncludeSubdirectories = true Source.FilePaths = empty Configure destination directory with %SourceRelativeDirectory%: Destination.Directory = D:\Integration\Customer\Out\%SourceRelativeDirectory% Enable destination directory creation: Options.CreateDestinationDirectories = true Run the task against an SFTP folder containing at least one file in a subdirectory, for example: /customer/out/reports/monthly/file.csv Verify the local destination folder after execution. Additional information: The transferred files are placed into the expected relative paths, but an extra empty literal "%SourceRelativeDirectory%" folder is created under the configured destination root.
