Skip to content

[Good First Issue] Add File Size and Count Statistics #5

@SthembisoMfusi

Description

@SthembisoMfusi

🎯 Issue Description

Show users statistics about what was organized - how many files, total size, etc.

🚀 What You'll Learn

  • File system operations
  • Data aggregation
  • String formatting

📋 Tasks

  • Count files in each category
  • Calculate total size of files moved
  • Show size in human-readable format (KB, MB, GB)
  • Display summary at the end
  • Add option to show detailed statistics

🛠️ Files to Modify

  • py_sort.py

💡 Hints

  • Use os.path.getsize() to get file sizes
  • Create helper function to format bytes
  • Show statistics after all files are processed

🧪 Testing

python py_sort.py ~/Downloads

📚 Resources

❓ Questions?

Feel free to ask questions in the comments or start a discussion!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions