FileHelper is designed to easily allow simple file manipulations and enumerations with minimal boilerplate code.
You can install FileHelper from PyPi
pip install filehelper
The main benefit of FileHelper
is the ease of enumeration over files/folders
import filehelper
# Find all python files in the current directory
py_files = filehelper.list_files('.', patterns['*.py'])
# Find all text and json files in the current directory and subdirectories
txt_files = filehelper.list_files('.', patterns=['*.txt', '*.json'], recursive=True)
# List all folders in the home directory
folders = filehelper.list_folders('/home')
# List all folders in a user's directory
folders = filehelper.list_folders('/home/user', recursive=True)
All of the work and vision was developed by Jonathan Grizou.
Graham Keenan updated the code to Python3 and removed the dependency on os
and replace with pathlib
Codebase is currently maintained by Graham Keenan