This program aims to show a certain type of file you have in a folder. But it's giving the following:
erro: WindowsError: [Error 2] O sistema não pode encontrar o arquivo especificado: 'pythonteste'.
Could anyone help me solve this problem?
import os
import glob
current_directory= os.path.dirname(os.path.abspath(__file__))
os.chdir('pythonteste')
files= glob.glob('*.txt')
for file in files:
print(file)