Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 728 Bytes

README.rst

File metadata and controls

28 lines (19 loc) · 728 Bytes

directory_to_sql

Get a SQLite database of a directory tree.

image

The data retrieved 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(search_path='\\', database='db.db')
top_10(conn)

Where to get it

The latest released version is available on the Python Package Index.

pip install directory_to_sql