-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
🎯 Issue Description
Sometimes users want to undo the organization. Let's add an undo feature that can restore files to their original locations!
🚀 What You'll Learn
- File system operations
- Data persistence (logging moves)
- Command-line argument parsing
📋 Tasks
- Create a log file to track file moves
- Add
--undocommand line option - Implement undo logic to restore files
- Add safety checks (don't overwrite existing files)
- Update help text and documentation
🛠️ Files to Modify
py_sort.pyREADME.md
💡 Hints
- Log moves to a JSON file with timestamp
- Store original path and new path for each move
- Add confirmation prompt for undo operation
🧪 Testing
python py_sort.py ~/Downloads
python py_sort.py ~/Downloads --undo❓ Questions?
Feel free to ask questions in the comments or start a discussion!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed