os.path.isfile()

os.path.isfile(path)[source]

Test whether a path is a regular file