Menu

#91 --follow-symlinks always copies on sync

Malfunction
closed-fixed
nobody
s3cmd (120)
5
2015-02-09
2011-05-26
Anonymous
No

using "s3cmd -F sync src dest" causes symlinks at src to always be copied to destination regardless of whether or not they exist at the destination.

The expected behavior would be for it to not upload files that already exist at the destination, like it does with other files.

Discussion

  • Emanuel Borsboom

    This looks like an easy bug to fix. Change the line

    sr = os.stat_result(os.lstat(full_name))

    to:

    if cfg.follow_symlinks:
    sr = os.stat_result(os.stat(full_name))
    else:
    sr = os.stat_result(os.lstat(full_name))

     
  • Matt Domsch

    Matt Domsch - 2015-02-09

    Fixed in 1.5.0 I believe.

     
  • Matt Domsch

    Matt Domsch - 2015-02-09
    • status: open --> closed-fixed
     

Log in to post a comment.