<human>:  how to get the first file of the path glob.
<bot>:

# Enter the path glob
path_glob = '/home/rosey/Desktop/*.txt'

# Calling the function
print((get_first_file(path_glob)))

#Example Output
# /

#Remember to inspect code for bugs.