From: SourceForge.net <no...@so...> - 2012-12-05 14:11:58
|
Bugs item #3308115, was opened at 2011-05-26 13:07 Message generated for change (Comment added) made by eborsboom You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=887015&aid=3308115&group_id=178907 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: s3cmd Group: Malfunction Status: Open Resolution: None Priority: 5 Private: No Submitted By: () Assigned to: Nobody/Anonymous (nobody) Summary: --follow-symlinks always copies on sync Initial Comment: 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. ---------------------------------------------------------------------- Comment By: Emanuel Borsboom (eborsboom) Date: 2012-12-05 06:11 Message: 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)) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=887015&aid=3308115&group_id=178907 |