S3Sync.net

General Category => Report Bugs => Topic started by: tkirby on September 19, 2007, 09:06:45 PM



Title: S3sync errors when using the '--progress' option on a single file
Post by: tkirby on September 19, 2007, 09:06:45 PM
./s3sync.rb --progress /home/tkirby/html/avshare_old/media/1419.wmv chickenrancher:avshare/media/
Update node
Null stream error:
Skipping avshare/media/1419.wmv: undefined method `closed?' for nil:S3sync::ProgressStream


Title: Re: S3sync errors when using the '--progress' option on a single file
Post by: ferrix on September 19, 2007, 09:47:33 PM
No one ever claimed s3sync could work for single files. Try s3cmd.


Title: Re: S3sync errors when using the '--progress' option on a single file
Post by: tkirby on September 19, 2007, 10:35:59 PM
The error doesn't happen when I don't specify '--progress'. So it's not transferring my file?

Why a separate command to copy single files? It would be easy enough to stat the source path and determine which the user wants to transfer.


Title: Re: S3sync errors when using the '--progress' option on a single file
Post by: ferrix on September 20, 2007, 10:08:13 PM
I just didn't ever special case the (already very "special") code to deal with single files.  s3cmd wasn't written specifically for that goal, it is just a thin command wrapper around s3.