why are you still using utl_file_dir in 10g? Is it any legacy application requirement? If not, you can try using Oracle directory method.

Thanks,