I'm running s3cmd from an Ant script and I'm developing on Windows.  I 
installed Python and s3cmd and I'm using them from an Ant like so:

<exec executable="${exec.python}" dir="${project.clean.root}">
        <arg value="${exec.s3cmd}" />
        <arg value="--guess-mime-type" />
        <arg value="--add-header=Cache-Control:max-age=604800" />
        <arg value="--add-header=Expires:${http.expires}" />
        <arg value="--encoding=UTF-8" />
        <arg value="--recursive" />
        <arg value="--acl-public" />
        <arg value="sync" />
        <arg value="${project.clean.root}/" />
        <arg value="s3://${aws.bucket}/" />
</exec> 

The problem is that s3cmd uploads the files in subdirectories with a \ 
instead of a / which means you have to access them like:

http://s3/bucket/subdir\subdir\file.ext

Is this known behavior?  If so, is there a way to work around it?


Brian


------------------------------------------------------------------------------
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to