#5966: FileField doesn't clean up directory after deletion
-------------------------+--------------------------------------------------
Reporter:  Michiel_1981  |       Owner:  nobody        
  Status:  new           |   Component:  Core framework
 Version:  SVN           |    Keywords:                
   Stage:  Unreviewed    |   Has_patch:  0             
-------------------------+--------------------------------------------------
 If a !FileField file is being deleted it doesn't clean up a empty
 directory that might occur after deletion.
 This is only a issue if you use a dynamic path based on date.

 If this is the case then you could create a lot of empty directories
 and/or nested empty directories.
 Example code:
 {{{
 class MetaFile(models.Model):
     file = models.FileField(_("File"), max_length=255,
                             upload_to='meta/%y/%m')
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5966>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to