Nope doesn't. It's not like I'm going to be putting any files not related to
the database uploads in the uploads folder... and even IF I did, the
database would only delete the related files, not everything in the folder
that wasn't linked...

It does provide some interesting options though, instead of deleting files
when the record gets deleted, you could queue up file names for deletion,
and then delete them with a cron, that way the disk only gets hit once
during the night for file deletions...

-Thadeus




On Tue, Dec 22, 2009 at 8:59 AM, Yarko Tymciurak <
resultsinsoftw...@gmail.com> wrote:

> On Dec 22, 12:28 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> > I just figured that would be default behavior... why would I have a file
> on
> > my system with absolutely no references to them anymore? And no "easy"
> way
> > to get those references back? (except from backups, but uploads probably
> > would go into the archive with the database)
>
> Well - in general, "do no harm..." - with files, it means "delete no
> information (it's trace material)...";  and this is not just in
> frameworks - if it's not in an obviously called place (e.g. /tmp),
> think carefully before deleting.
>
> For a framework, I think this is just good default principle:  don't
> delete files, unless someone explicitly deletes them (oh - and if they
> want the framework to do it for them, be _sure_ they "said so!").
>
> Hope that makes sense.
>
> - Yarko
>
> ...
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to