Added file_name argument to QueryDirectory.