mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 23:32:39 +00:00
rm: make the remove
function public
This commit is contained in:
parent
75044c1bc4
commit
20fb473da8
1 changed files with 7 additions and 1 deletions
|
@ -279,7 +279,13 @@ pub fn uu_app() -> Command {
|
|||
}
|
||||
|
||||
// TODO: implement one-file-system (this may get partially implemented in walkdir)
|
||||
fn remove(files: &[&OsStr], options: &Options) -> bool {
|
||||
/// Remove (or unlink) the given files
|
||||
///
|
||||
/// Returns true if it has encountered an error.
|
||||
///
|
||||
/// Behavior is determined by the `options` parameter, see [`Options`] for
|
||||
/// details.
|
||||
pub fn remove(files: &[&OsStr], options: &Options) -> bool {
|
||||
let mut had_err = false;
|
||||
|
||||
for filename in files {
|
||||
|
|
Loading…
Reference in a new issue