mirror of
https://github.com/YGGverse/pulsarss.git
synced 2026-03-31 09:05:29 +00:00
apply limits to index files
This commit is contained in:
parent
e45b8d26fc
commit
5201fb9cf7
1 changed files with 4 additions and 0 deletions
|
|
@ -113,6 +113,10 @@ fn crawl(argument: &Argument, output: &Output) -> Result<(), Box<dyn Error>> {
|
|||
let mut total = 0;
|
||||
|
||||
for file in files {
|
||||
if argument.limit.is_some_and(|limit| total >= limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
let name = file.file_name().into_string().unwrap();
|
||||
|
||||
if &name == index_argument {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue