Topic "SessionRemoteException:Internal error fz#rename (0010)"

Author Message
codenat
[View user's profile]

Joined: 2015-03-23
Posts: 12
Location: Columbia, SC
Howdy,
I am working on a windows service that periodically checks the ftp server for new files and if there are new files, saves the file to the History folder, and then downloads the file.

I am using the .net assembly from the nuget package.

I am having trouble figuring out how to move the file (or copy the file), on the ftp server, from the original folder to the history folder within it and then download only the file and not the history folder. I've tried various things and when it works, it downloads the history folder with the file, but when it doesn't, this is my latest error message:
WinSCP.SessionRemoteException: Internal error fz#rename (0010). ---> WinSCP.SessionRemoteException: Error moving file '/users/NATTest/FileCheck/' to '/users/NATTest/FileCheck/History/'.
--- End of inner exception stack trace ---
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.ReadToEnd(LogReadFlags flags)
at WinSCP.Session.MoveFile(String sourcePath, String targetPath)

Any ideas or suggestions would be fabulous. Smile
Nat
codenat
[View user's profile]

Joined: 2015-03-23
Posts: 12
Location: Columbia, SC
I can get it working without the error that I posted, but I still can't seem to get the file and not the folder.

Nat
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License