import os

path = '/path/to/directory'
files = os.listdir(path)

for file in files:
    print(file)