Katalog Python zawiera plik

import os.path

if os.path.isfile('filename.txt'):
    print ("File exist")
else:
    print ("File not exist")
Stupid Stoat