An alternative would be to simply use the file in the directory that has the oldest (or newest, you'll have to check) creation time (assuming the directory was empty to start with).
In fact, IIRC web2disk creates only a single file in the top level directory.
Last edited by kovidgoyal; 11-19-2008 at 04:20 PM.
|