On Wed, Apr 10, 2013 at 4:39 PM, Ioan Alexandru Cucu < [email protected]> wrote:
> Hi all, > > Would it make sense to enhance the django.core.files.storage.Storage class > with some additional methods such as copy or move file? > > I'm currently in a situation where my storage backend is a S3 bucket, and > in order to move files I need to download and upload them again at a > different location. > I could obviously implement the file moving operation by using some low > level S3 API. > However, writing low level storage dependent code in the model objects > would kill their portability, so > I feel like this kind of functionality should be handled by the storage > object itself. > At a purely API level, adding move/copy operations seems reasonable to me. I'm guessing they were omitted from the original API because pure web upload operations don't need to move/copy, but I can see how those utilities could be useful for site maintenance and other ongoing operations. So - patches welcome :-) Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
