from os import listdir
from os.path import isfile, join
from operator import itemgetter, attrgetter

onlyfiles = [f for f in listdir(".") if isfile(join(".", f))]


print(onlyfiles)
from os import listdir
from os.path import isfile, join
from operator import itemgetter, attrgetter

onlyfiles = [f for f in listdir(".") if isfile(join(".", f))]


print(onlyfiles)