How to Upload and Download specific directory.

Advertisement

elecboy
Joined:
Posts:
3
Location:
Puerto Rico

How to Upload and Download specific directory.

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: How to Upload and Download specific directory.

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

"put -neweronly u:\Docs\* /upload/"

Reply with quote

elecboy
Joined:
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!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
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.

Reply with quote

Advertisement

Guest

martin 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)

Reply with quote

martin
Site Admin
martin avatar

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?

Reply with quote

Advertisement

You can post new topics in this forum