Downloaded files getting whole remote path name as Filename
Hi,
I'm downloading from the following folder at my remote path:
ftproot\TestFolder\datFiles\Server\
Trying to download the following file: File123.dat
The files are downloading into my test folder fine, but their name, instead of File123.dat is
ftproot%5CTestFolder%5CdateFiles%5CServer%5CFile123.dat
Code:
Any ideas?
I'm downloading from the following folder at my remote path:
ftproot\TestFolder\datFiles\Server\
Trying to download the following file: File123.dat
The files are downloading into my test folder fine, but their name, instead of File123.dat is
ftproot%5CTestFolder%5CdateFiles%5CServer%5CFile123.dat
Code:
var _ftpFolder = "ftproot\TestFolder\datFiles\Server\"; var fileName = "File123.dat"; var localFilePath = "C:/test"; var transferResult = _session.GetFiles(_ftpFolder + filename, localFilePath, false);
Any ideas?