Skip to content

Instantly share code, notes, and snippets.

View entirelymagic's full-sized avatar
🌈
There is no end to education.

Munteanu Elvis entirelymagic

🌈
There is no end to education.
View GitHub Profile
@entirelymagic
entirelymagic / file_parser.py
Created October 16, 2021 08:30
A class that takes a folder path and return a list or dictionary with all specific files required
import os
class FileParser:
"""A class to parse for files or directories in a given directory path"""
def __init__(self, folder_path) -> None:
self.folder_path: str = folder_path
self.all_file_list: list = []
self.all_dirs_list: list = []