Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some flags to rm command #60

Open
andywu42 opened this issue Sep 9, 2024 · 1 comment
Open

Add some flags to rm command #60

andywu42 opened this issue Sep 9, 2024 · 1 comment

Comments

@andywu42
Copy link

andywu42 commented Sep 9, 2024

Objective: Add possible flags to rm so that it can recursively remove directories and files inside of them. Also deletes directories inside of directories. I want to also update rm on its own so that it cannot delete directories.

Ideas:
"-rf" removes all files and directories in a given directory
"-v" verbose flag that displays what is being removed

@malensek
Copy link
Contributor

This is a good idea. I think we might need to add a bit of complexity.

For the -r flag, that should remove all files / dirs. -f would ignore errors / not prompt about it. Which brings me to my next point... you might want to also add an -i option for interactive mode, that prompts Y/N for each file.

It would also be nice to support -d as well, and I think -v is a great idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants