summaryrefslogtreecommitdiff
path: root/Userland/Utilities/rm.cpp
AgeCommit message (Collapse)Author
2022-12-23LibCore: Remove the `force` parameter from File::removeTim Schumacher
About half of the usages were not using `force` anyways, and the other half presumably just got confused about what "force" really means in this context (which is "ignore nonexistent files"). The only 'legitimate' user, which is `rm`, instead now handles this completely internally instead.
2022-01-25rm: Port to LibMainAriel Abreu
2022-01-02rm: Check before removing '/'Lucas CHOLLET
A simple check to not erase '/' by mistake.
2021-11-08LibCore: Use ErrorOr<T> for Core::File::remove()Andreas Kling
This function returns a subclass of Error, which is now possible.
2021-06-05rm: Allow empty paths if -f is specifiedTim Schumacher
On most (if not all) systems rm ignores an empty paths array if -f or --force is specified. This helps with scripts that may pass an empty variable where the file paths are supposed to go.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-02-21rm: Use Core::File::removeMițca Dumitru
2021-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling