Sprad has asked for the wisdom of the Perl Monks concerning the following question:
* The files need unique names
* The files shouldn't stick around any longer than necessary
I have a session ID, so I can base a reasonably unique filename off of that. But the file expiration has me going in circles. Is there a better way than simply dumping them all in a temp directory and setting a cron job to sweep the old ones?
---
A fair fight is a sign of poor planning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Temp file strategy
by marto (Cardinal) on Sep 15, 2005 at 15:51 UTC | |
|
Re: Temp file strategy
by osunderdog (Deacon) on Sep 15, 2005 at 15:55 UTC | |
|
Re: Temp file strategy
by ikegami (Patriarch) on Sep 15, 2005 at 15:53 UTC | |
|
Re: Temp file strategy
by blazar (Canon) on Sep 15, 2005 at 16:54 UTC | |
by chb (Deacon) on Sep 19, 2005 at 06:55 UTC | |
by blazar (Canon) on Sep 19, 2005 at 09:59 UTC | |
|
Re: Temp file strategy
by rob_au (Abbot) on Sep 16, 2005 at 13:15 UTC | |
|
Re: Temp file strategy
by Tanktalus (Canon) on Sep 16, 2005 at 00:10 UTC | |
by signal9 (Pilgrim) on Sep 17, 2005 at 13:27 UTC | |
|
Re: Temp file strategy
by samizdat (Vicar) on Sep 15, 2005 at 17:56 UTC | |
|
Re: Temp file strategy
by rvosa (Curate) on Sep 17, 2005 at 11:51 UTC |