Jacob Elder wrote: > s3cmd's sync feature is great, but I'm getting this every time I sync > one of my buckets to a local directory. I suspect this might be related > to there being an empty directory in the bucket. > > I am tracking svn trunk. > > S3cmd: 0.9.9-pre1 > Python: 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) [GCC 4.2.3 (Ubuntu > 4.2.3-2ubuntu7)] > > Traceback (most recent call last): > File "/usr/local/bin/s3cmd", line 1097, in <module> > main() > File "/usr/local/bin/s3cmd", line 1076, in main > cmd_func(args) > File "/usr/local/bin/s3cmd", line 679, in cmd_sync > return cmd_sync_remote2local(src, dst) > File "/usr/local/bin/s3cmd", line 524, in cmd_sync_remote2local > try: dst_stream.close() > UnboundLocalError: local variable 'dst_stream' referenced before assignment
Hi Jacob, I can't reproduce this crash. How did you end up with an empty directory in a bucket? 'sync' doesn't store directories, only files with full path names, so an empty bucket won't get in S3 at all. Can you send me a listing of your bucket please? Michal ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general