Just updated the ticket. As I commented, the heuristic for checking if a file has been modified lies in line 282 of collectstatic.py:
*if not prefixed_path in self.copied_files:* * return self.log("Skipping '%s' (already copied earlier)" % path) * https://github.com/django/django/blob/master/django/contrib/staticfiles/management/commands/collectstatic.py#L282 This seems off, since a path may stay the same but a file's contents may change. Also, the existing functionality doesn't work when multiple people are running collectstatic (or the same person is running it on multiple computers). Dan On Thu, Sep 27, 2012 at 3:12 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Sep 27, 2012 at 12:51 PM, Dan Loewenherz <dloewenh...@gmail.com>wrote: > >> The problem I've run into is that collectstatic copies all files, >> regardless of whether they already exist on the destination. > > > No, as noted in the ticket, which has been closed needsinfo, staticfiles > already only copies modified files. And I don't think that's a > recently-added feature, so I suspect the behavior you are seeing has more > to do with the S3 side than the staticfiles code. This post: > > > http://stackoverflow.com/questions/6618013/django-staticfiles-and-amazon-s3-how-to-detect-modified-files > > looks enlightening though even that is not all that new. It sounds like > the problem here is efficiently getting the last-modified time for the > files out in S3, not with staticfiles. > > Karen > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-developers@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.