Re: Alternative to listdir on every page view

2008-03-08 Thread Prof. William Battersea
Thanks Malcolm. I did some testing and the listdir function returns extremely quickly so I don't think it's a big deal. But this will come in handy if the gallery grows much larger. Thanks again. On Fri, Mar 7, 2008 at 8:26 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2008-0

Re: Alternative to listdir on every page view

2008-03-07 Thread Malcolm Tredinnick
On Fri, 2008-03-07 at 08:16 -0500, Prof. William Battersea wrote: > Hello, > > I'm working on a photo gallery for a user. I wanted to make it dead > easy for him to create the gallery and upload photos. Right now, each > time a gallery page is viewed, I look at the directory where the > thumbnai

Alternative to listdir on every page view

2008-03-07 Thread Prof. William Battersea
Hello, I'm working on a photo gallery for a user. I wanted to make it dead easy for him to create the gallery and upload photos. Right now, each time a gallery page is viewed, I look at the directory where the thumbnails are stored using listdir and slice the resulting list depending on what page