From 7baddb17d0a6bee73f9d4c20fe3411915dd3b2a7 Mon Sep 17 00:00:00 2001 From: Stephane Royer Date: Mon, 5 Aug 2024 12:44:06 +0200 Subject: [PATCH 1/2] pb with backslashes and smartformat --- src/Paillave.Etl.FileSystem/FileSystemFileValueProcessor.cs | 2 +- src/Paillave.Etl.Ftp/FtpFileValueProcessor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paillave.Etl.FileSystem/FileSystemFileValueProcessor.cs b/src/Paillave.Etl.FileSystem/FileSystemFileValueProcessor.cs index e109c58e..062c1a72 100644 --- a/src/Paillave.Etl.FileSystem/FileSystemFileValueProcessor.cs +++ b/src/Paillave.Etl.FileSystem/FileSystemFileValueProcessor.cs @@ -19,7 +19,7 @@ protected override void Process(IFileValue fileValue, FileSystemAdapterConnectio using var l = fileValue.Get(processorParameters.UseStreamCopy); var folder = string.IsNullOrWhiteSpace(connectionParameters.RootFolder) ? (processorParameters.SubFolder ?? "") : Path.Combine(connectionParameters.RootFolder, processorParameters.SubFolder ?? ""); var outputFilePath = Path.Combine(folder, fileValue.Name); - outputFilePath = SmartFormat.Smart.Format(outputFilePath, fileValue); + outputFilePath = SmartFormat.Smart.Format(outputFilePath.Replace(@"\",@"\\"), fileValue); if (processorParameters.BuildMissingSubFolders) { var directory = Path.GetDirectoryName(outputFilePath); diff --git a/src/Paillave.Etl.Ftp/FtpFileValueProcessor.cs b/src/Paillave.Etl.Ftp/FtpFileValueProcessor.cs index 5adc6c29..e780ff31 100644 --- a/src/Paillave.Etl.Ftp/FtpFileValueProcessor.cs +++ b/src/Paillave.Etl.Ftp/FtpFileValueProcessor.cs @@ -18,7 +18,7 @@ protected override void Process(IFileValue fileValue, FtpAdapterConnectionParame // var folder = Path.Combine(connectionParameters.RootFolder ?? "", processorParameters.SubFolder ?? ""); var filePath = Path.Combine(folder, fileValue.Name); - filePath = SmartFormat.Smart.Format(filePath, fileValue.Metadata); + filePath = SmartFormat.Smart.Format(filePath.Replace(@"\",@"\\"), fileValue.Metadata); using var stream = fileValue.Get(processorParameters.UseStreamCopy); byte[] fileContents; using (MemoryStream ms = new MemoryStream()) From 6ad4b44374f90c636884dfc032320c26d4a6182c Mon Sep 17 00:00:00 2001 From: Stephane Royer Date: Mon, 5 Aug 2024 12:45:52 +0200 Subject: [PATCH 2/2] update version --- src/SharedSettings.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharedSettings.props b/src/SharedSettings.props index 7fb61bcc..61dd0b84 100644 --- a/src/SharedSettings.props +++ b/src/SharedSettings.props @@ -2,7 +2,7 @@ latest enable - 2.1.29-beta + 2.1.30-beta NugetIcon.png README.md Stéphane Royer