mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 09:05:30 +00:00
filter files by extension
This commit is contained in:
parent
c91a1b32a4
commit
9bc434375f
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ impl Public {
|
|||
let mut b = Vec::with_capacity(self.default_capacity);
|
||||
for entry in fs::read_dir(&self.root)? {
|
||||
let e = entry?;
|
||||
if e.file_type()?.is_file() {
|
||||
if e.file_type()?.is_file() && e.path().extension().is_some_and(|e| e == EXTENSION) {
|
||||
b.push((e.metadata()?.modified()?, e))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue