Did you copy the Dirlist UDF to your script?
_________________________
(... better days ahead)