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