import os
import glob
def List_files_dirs(pn):
file_folder= glob.glob(pn + '\\*')
files=[]
dirs=[]
for fn in file_folder:
if os.path.isfile(fn):
files.append(fn)
else:
dirs.append(fn)
return files, dirs