Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

📂 Directory Scanner

A Python script that recursively scans a directory and outputs a detailed listing of all files and subdirectories, including sizes, modification dates, and depth.


✨ Features

  • Recursively traverses any folder tree
  • Displays file sizes in human-readable format
  • Shows last-modified timestamps
  • Indented output that reflects folder depth
  • Useful as a quick audit tool or learning exercise for os.walk()

🖥️ Tech Stack

Category Technology
Language Python 3
File System os, pathlib (built-in)
Formatting datetime, math (built-in)

🚀 Getting Started

python DirectoryScanner.py

You will be prompted to enter the path to scan.


📝 What I Learned

  • Recursive directory traversal with os.walk()
  • Formatting file sizes (bytes → KB → MB)
  • Using os.path.getmtime() for file timestamps
  • Building structured text output with indentation

Made with ❤️ as part of a learning journey