On Mon, Jan 10, 2011 at 00:17, Michal Ludvig <mlud...@logix.net.nz> wrote: > Hi Jim, > > I'm afraid that the only reliable way to copy all the attributes across > (i.e. mime type, acl, s3cmd stored attribs, etc) is to run HEAD request > on the object to learn all the current attribs and then COPY with them > included. > > Your "guess_type()" approach may work in some cases but you may still > lose all the other attribs along the way.
Hi Michal, I originally started down the HEAD request path. Since my interest was only in updating the TTL I only coded what was necessary to "preserve" mime-type since that was always defaulting to binary/octet-stream. I'll make a second pass at implementing the HEAD request approach, as you stated, it is the best approach. -Jim P. ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general