Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#27 info command contains bugs

Enhancement_request
closed-fixed
Michal Ludvig
s3cmd (117)
5
2009-02-14
2009-02-10
Anonymous
No

We have been trying to use the info command in our scripts for comparing md5 sums of local and remote files. The problem is that info command is extremely slow to run for every single file, and we have also been having some errors associated with that command, which lead to the script's freezing.

AttributeError: ParameterError instance has no attribute 'message'
ExpatError: no element found: line 1, column 0

We have been trying to find a way of combining ls and info commands in one. Is there a way to expand the ls command, so that it also outputs the md5 sum of the file on amazons3? Or is it possible to combine both ls and info in one line, so that we can get both url and md5 sum of the remote file? So far we could not figure out a way to combine the two commands.

We will appreciate any help in this matter.

Discussion

  • Michal Ludvig
    Michal Ludvig
    2009-02-14

    • milestone: --> Enhancement_request
    • assigned_to: nobody --> ludvigm
    • status: open --> closed-fixed
     
  • Michal Ludvig
    Michal Ludvig
    2009-02-14

    > AttributeError: ParameterError instance has no attribute 'message'
    > ExpatError: no element found: line 1, column 0

    Are you running behind a http proxy?

    > Or is it possible to combine both ls and info in one line, so that we
    > can get both url and md5 sum of the remote file?

    I have added --list-md5 option for 'ls' command. For now it's in SVN repo and will be in s3cmd 0.9.9 final once that is out. Please test it and let me know if it does what you wanted.

    What do you need it for, by the way? Perhaps you're after the 'sync' command that does compare checksums on upload?