Closed GoogleCodeExporter closed 8 years ago
can use rsync --inplace as a workaround
Original comment by rri...@gmail.com
on 24 Sep 2009 at 6:04
Thanks! It works.
Original comment by premr...@gmail.com
on 25 Sep 2009 at 4:41
rsync when used without --inplace creates a random extension that it tacks onto
the filename. For example, if I rsync the following file:
/Canon-SD850/100CANON/IMG_0278.JPG
...the path that s3fs initially sees when creating the file is this:
/Canon-SD850/100CANON/.IMG_0278.JPG.PbkGhI
Obviously, "PbkGhI" isn't an extension that is a recognized mime type.
(Apparently, rsync later on does a move of this file).
The attached patch solves this issue by modifying the lookupMimeType function
to not only analyze the last extension for a matching mime type, but analyze
the second to last extension if the last extension did not result in a match.
Original comment by moore...@gmail.com
on 1 Jul 2010 at 12:34
Attachments:
Original comment by dmoore4...@gmail.com
on 18 Oct 2010 at 9:23
Fixed in r198 - applied patch and verified
Original comment by dmoore4...@gmail.com
on 18 Oct 2010 at 10:18
Original issue reported on code.google.com by
premr...@gmail.com
on 24 Sep 2009 at 5:01