Get a SQLite database of a directory tree.
The data retrived includes:
- File sizes and modification date.
- Folder sizes and file counts.
- Recursive (including sub-folders) folder sizes and file counts.
To create the database and execute some example queries listing largest files and folders:
from directory_to_sql import get_db, top_10 conn = get_db('\\', 'db.db') top_10(conn)