GNOME Bugzilla – Bug 591493
Options --force and --recursive for gvfs-trash command line tool
Last modified: 2009-09-24 21:18:18 UTC
After a few incidences, I am thinking of aliasing "rm" to "gvfs-trash" on some machines that I maintain. A very common usecase is to do "rm -rf" on some files and directories, to remove the files recusively and not question about anything (especially not about non-existing files). For the alias to work in this common scenario, it would be great if gvfs-trash understood these two options. --recursive would be a no-op, since gvfs-trash is recursive by default already --force would check the files for existance, and skip non-existing ones silently I'll attach a patch against current git master (f9b0e8a702dfee) to this report.
Created attachment 140487 [details] [review] Patch against f9b0e8a702dfeebbbf60e6baff08 (current master)
Created attachment 140970 [details] [review] Second version of the patch with fixed spaces and brackets
I added a version with only --force