import os from os import getcwd, listdir local = listdir() for nome in local: if nome.startswith('Moki_C') == True: print(nome) nomeArquivo = nome caminho = os.getcwd() print(f'{caminho}\{nomeArquivo}')