Topic "Having problem to move the records to our archive folder"

Author Message
Philky001
[View user's profile]
Donor
Joined: 2015-11-24
Posts: 20
I am able now to post the files on the remote server. Now we want to move them from their original spot to our archive folder. the following code
has in file, the folder path orig with the file, and the item.FolderPathArchive has the folder path of the archive folder.

It's not doing the move, am I missing anything here?

session.MoveFile(file, item.FolderPathArchive]);
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
It's difficult to help you, if you do not show us the exact values you are using.

Anyway, make sure the target path includes a file name (like /target/remote/path/file.ext).
Or if you need/want to use a directory path only, make sure the path ends with a slash (like /target/remote/path/).
_________________
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