Human: Give me a Python program to get the first file in a folder. Assistant: 
Here is a Python program to get the first file in a folder

import os

def get_first_file(path):
    """Get first file in a folder.
    """
    for root, dirs, files in os.walk(path):
        for file in files:
            if file.endswith(".txt"):
                return os.path.join(root, file)

# Enter the path
path = "/Users/rosey/Desktop/"

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

#Example Output
# None

#Remember to inspect code for bugs.