Re: deleting old ascii player files

From: Brandon Allen (crio49@HOTMAIL.COM)
Date: 12/27/02


>how would i go about making a auto function to delete player files
>over 60 days old that are not used?

what i do is i add another tagin the file outputing when
the last time they were written to disk i every night
at midnight check it with difftime ( i write the string
to the file in the EXACT format difftime wants) and then
if difftime tells me it is over a number i set in conf
i delete the file.

simple clean

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT