We have discovered an issue. It only occur under some circumstances. We hav a case where we need to download files from a SFTP server that we don't have control over. Filenames on the server contains e.g. : (colon). We are running Frends on a Windows server and there : is not allowed as a file name.
We know that there is the function to rename files on the SFTP server before download but that is not allowed by the server owner. We also know that there is the option to rename the file during transfer but that function does download the file to the windows server first and then do a rename. That fails in our case sin the file name contains :
In our case we have a file name like this ORDERS-7350055080018:14:_202511130930_206. Downloading this to a windows server does not work.
Have implemented a fix for this in the code that we now have got working. Would be nice if this could be merged into the code. Does not need to be done as our suggestion if there is a better solution to it.
Have created an option for enabling the function ReplaceNotAllowedCharsInDownloadFileName. When enabled you can also state what char to replace with.
Have created a fork for this (https://github.com/JoakimPet/Frends.SFTP). Created a branch in the fork and commited it. Will create a pull request as well.
Please let me know if anything else needs to be done
/Joakim
We have discovered an issue. It only occur under some circumstances. We hav a case where we need to download files from a SFTP server that we don't have control over. Filenames on the server contains e.g. : (colon). We are running Frends on a Windows server and there : is not allowed as a file name.
We know that there is the function to rename files on the SFTP server before download but that is not allowed by the server owner. We also know that there is the option to rename the file during transfer but that function does download the file to the windows server first and then do a rename. That fails in our case sin the file name contains :
In our case we have a file name like this ORDERS-7350055080018:14:_202511130930_206. Downloading this to a windows server does not work.
Have implemented a fix for this in the code that we now have got working. Would be nice if this could be merged into the code. Does not need to be done as our suggestion if there is a better solution to it.
Have created an option for enabling the function ReplaceNotAllowedCharsInDownloadFileName. When enabled you can also state what char to replace with.
Have created a fork for this (https://github.com/JoakimPet/Frends.SFTP). Created a branch in the fork and commited it. Will create a pull request as well.
Please let me know if anything else needs to be done
/Joakim