Topic "How to Upload and Download specific directory."

Author Message
elecboy
[View user's profile]

Joined: 2016-04-12
Posts: 3
Location: Puerto Rico
I have been killing myself trying to download or upload a file to a specific folder, here is my command:

For Get I will like it to go to a remote folder called "download" and put everything in "d:\" in my local machine :

"get -neweronly -preservetime /* d:\"




For Put I will like to go to a remote folder called "upload" and put everything in "U:\Docs" in my local machine:

"put -neweronly u:\* /"

Thanks!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
"get -neweronly -preservetime /download/* d:\"

"put -neweronly u:\Docs\* /upload/"
elecboy
[View user's profile]

Joined: 2016-04-12
Posts: 3
Location: Puerto Rico
Great Thank you very much!!!
elecboy
[View user's profile]

Joined: 2016-04-12
Posts: 3
Location: Puerto Rico
prikryl I have now a problem, I can download everything if it is not inside a folder, this is the command I am using:

"get -neweronly -preservetime /Download/* d:\"

They created a Folder called "Encounter" inside /Download/ so when WinSCP tries to download that folder I get and error, this is what I see in the logs:

2016-04-27 09:50:51.278 File: '/Download/Encounter' [2016-04-27T13:27:44.000Z] [0]
* 2016-04-27 09:50:51.278 (EOSError) System Error. Code: 3.
* 2016-04-27 09:50:51.278 The system cannot find the path specified
. 2016-04-27 09:50:51.278 Asking user:
. 2016-04-27 09:50:51.278 Error creating folder 'd:\Encounter'. ("System Error. Code: 3.
. 2016-04-27 09:50:51.278 The system cannot find the path specified")
< 2016-04-27 09:50:51.278 Script: Error creating folder 'd:\Encounter'.

Thanks you!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
Do you mean that you can download a file from /Download/ (say /Download/file.txt) to D:\file.txt, but you cannot "download" a directory /Download/Encounter to D:\Encounter?

Please attach a full log file showing that (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. 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.
Guest




prikryl wrote:
Do you mean that you can download a file from /Download/ (say /Download/file.txt) to D:\file.txt, but you cannot "download" a directory /Download/Encounter to D:\Encounter?


Yes you are correct!

I include WinSCP Log.
winscp.txt (4.31 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
OK, but can you attach a log showing a successful download of the file, but a failed download of the directory, in the same session?
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