Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: prevent resolving of symlinks during synchronize

jamal wrote:

1. Am I right that winscp cannot copy symlinks as symlinks (even if they are relative)?

No WinSCP cannot do that. It is hard to do soemthing like that on Windows.
2. Is there a script setting that will allow me to ignore symlinks?

No yet.
jamal

prevent resolving of symlinks during synchronize

Hi,

I'm successfully been using a script to synchronize my computer to a server. The server contains many symlinks to files and so these files end up on my machine twice. I would either like to copy the symlink as a symlink (which i gather is not possible), or ignore the symlink entirely.

1. Am I right that winscp cannot copy symlinks as symlinks (even if they are relative)?
2. Is there a script setting that will allow me to ignore symlinks?

Thanks!

Here is my batch file:
echo off
winscp3.com /script=getData.txt
if errorlevel 1 goto error

echo Success!
goto end

:error
echo Error!

:end

And here is getData.txt:

# if there is an error, abort right away
option batch abort
# do not prompt for permission to copy, etc
option confirm off
# ascii data
option transfer ascii

# open a connection to remote system
open user:password@system.edu

# update my local folder to match the remote folder
synchronize local "localdir" remotedir

# disconnect and exit winscp
close
exit