Skip to content

hydrospanner/directory_to_sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get a SQL database of file directory data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages