File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -341,9 +341,12 @@ impl<'gctx> CleanContext<'gctx> {
341
341
Ok ( ( ) )
342
342
}
343
343
344
- /// Iterates over files matching a glob (`pattern`), removing any files whose filenames start and end with provided prefix/suffix pair.
345
- /// Compared to multiple separate calls to [`Self::rm_rf_glob`], this method iterates over the directory just once, which is why
346
- /// it may be preferable for working with multiple prefix/suffix pairs.
344
+ /// Removes files matching a glob and any of the provided filename patterns (prefix/suffix pairs).
345
+ ///
346
+ /// This function iterates over files matching a glob (`pattern`) and removes those whose
347
+ /// filenames start and end with specific prefix/suffix pairs. It should be more efficient for
348
+ /// operations involving multiple prefix/suffix pairs, as it iterates over the directory
349
+ /// only once, unlike making multiple calls to [`Self::rm_rf_glob`].
347
350
fn rm_rf_prefix_list (
348
351
& mut self ,
349
352
pattern : & str ,
You can’t perform that action at this time.
0 commit comments