Skip to content

Commit

Permalink
match with regex
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Feb 28, 2025
1 parent 78a141e commit b3037ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parseable/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ impl Stream {
.flatten()
.map(|file| file.path())
.filter(|path| {
path.file_name().is_some_and(|f| {
let filename = f.to_string_lossy();
filename.ends_with(ARROW_FILE_EXTENSION) && !filename.contains("part")
})
let Some(file_name) = path.file_name().and_then(|f| f.to_str()) else {
return false;
};
ARROWS_NAME_STRUCTURE.is_match(file_name)
})
.sorted_by_key(|f| f.metadata().unwrap().modified().unwrap())
.collect();
Expand Down

0 comments on commit b3037ff

Please sign in to comment.