[Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973
Martin Langhoff
martin.langhoff at gmail.com
Tue Oct 2 09:09:21 EDT 2012
On Tue, Oct 2, 2012 at 8:24 AM, Manuel Kaufmann <humitos at gmail.com> wrote:
> On Tue, Oct 2, 2012 at 6:40 AM, Martin Langhoff
> <martin.langhoff at gmail.com> wrote:
>> Good, but not enough. Compare mtime also to our boot time (ie: now -
>> uptime). If the file is from before we booted, needs to be nuked.
>
> You say that I should add this test as well, right? I mean, compare if
> the file is older than 1 day AND check the mtime with our boot time or
> remove my test and use only this one?
Both checks. As you say, a long uptime is a definite possibility.
m
--
martin.langhoff at gmail.com
martin at laptop.org -- Software Architect - OLPC
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Sugar-devel
mailing list