Sheffield | 25-SDC-Nov | Sheida Shabankari | Sprint 4 |Implement Shell tools in python#256
Sheffield | 25-SDC-Nov | Sheida Shabankari | Sprint 4 |Implement Shell tools in python#256sheida-shab wants to merge 18 commits intoCodeYourFuture:mainfrom
Conversation
sheida-shab
commented
Nov 27, 2025
- I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
- My changes meet the requirements of the task
- I have tested my changes
- My changes follow the style guide
LonMcGregor
left a comment
There was a problem hiding this comment.
Good start on this sprint's tasks, I have spotted a few areas where you could improve code further
Remember to include a summary of changes in the PR
| print(item) | ||
| elif args.one : | ||
| if not item.startswith(".") : | ||
| print(item) |
There was a problem hiding this comment.
Did you test all the combinations of arguments?
There was a problem hiding this comment.
Fix -a output order to match ls: non-hidden files first, hidden files last, with '.' and '..' at the top. Previously I tested all combinations and thought showing all files/folders was enough, but now I fixed the order to fully match ls behavior.
There was a problem hiding this comment.
If you test this without the -1 option, can you see what happens. What would you expect to happen?
There was a problem hiding this comment.
Thanks for pointing this out. I hadn’t tested the code without the -1 flag, which helped me see a problem in my printing logic. I was wrongly using -1 to decide whether anything was printed, instead of only how the output should be shown.