Malcolm Tredinnick wrote: > The docs already mention looping over chunks(). However, given that the > file exists on disk (which is something you can check for), and you have > access to the full filename, it seems like for simple file copies/moves, > using the standard Python shutil module solves all your problems here.
I'm +1 on Julien's suggestion because the code that he mentioned (check if it's in memory/on disk and then dump/move) is indeed a very common and sane behavior. Requiring most users to repeat those 8-10 lines of boilerplate is not very nice, IMHO. > The chunks() solution is necessary if you're doing something a bit nuts Yeah, this is a low-level API. Why not have a high-level one if it's sane? :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
