Skip to content

Instantly share code, notes, and snippets.

View mgoksu's full-sized avatar

Miraç Göksu Öztürk mgoksu

  • Samsun, Türkiye
View GitHub Profile
@mgoksu
mgoksu / file_name.py
Created May 7, 2018 08:18
get the file list given a folder
import os
def get_file_list(src_fol, ext):
f_list = []
for subdir, _, files in os.walk(src_fol):
for filename in files:
_, f_ext = os.path.splitext(filename)
if f_ext == ext:
full_file_path = os.path.join(subdir, filename)