EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP Download file error

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#28508
Posted: 02/21/2014 11:19:21
by Ravi teja (Basic support level)
Joined: 02/21/2014
Posts: 2

I have below code which throws an error .

if (SftpClient.FileExists(remoteFileName))
{
// I tried with out file stream also
FileStream fs = new FileStream(localFilePath, FileMode.Create);
fs.Close();
SftpClient.DownloadFile(remoteFileName, localFilePath);
SftpClient.Close(true);
}

Exception :
File system operation failed with error. Requested path is D:/abc\\temp.zip (error code is 103429)

Stack Trace :

at SBCustomFSAdapter.__Global.RaiseVFSAdapterError(Int32 ErrorCode, String FileName)
at SBSimpleSftp.TElSimpleSFTPClient.DownloadFile(String RemoteFileName, String LocalFileName, TSBFileTransferMode Mode, Int64 RestartFrom)
at SBSimpleSftp.TElSimpleSFTPClient.DownloadFile(String RemoteFileName, String LocalFileName, TSBFileTransferMode Mode)
at SBSimpleSftp.TElSimpleSFTPClient.DownloadFile(String RemoteFileName, String LocalFileName)


Can you please help me ?

Thanks in advance
#28509
Posted: 02/21/2014 11:28:56
by Eugene Mayevski (EldoS Corp.)

The message is self-explaining -- the path is NOT valid. Directories without names must not exist, and duplicate double-slash (\\) is a wrong part of the path.


Sincerely yours
Eugene Mayevski
#28510
Posted: 02/21/2014 11:54:46
by Ravi teja (Basic support level)
Joined: 02/21/2014
Posts: 2

Thanks it worked actually

Thanks
Ravi

Reply

Statistics

Topic viewed 935 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!