Skip to content

Commit

Permalink
todo: Packer::is_allow method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 26, 2024
1 parent c1d6554 commit 4f41414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin/file_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ pub trait Packer: Send + Sync {
let point = file_name.rfind(".");
match point {
None => {
new_log_name.push_str(&self.date_string(date));
new_log_name.push_str(&self.date_to_string(date));
}
Some(i) => {
let (name, ext) = file_name.split_at(i);
new_log_name = format!("{}{}{}", name, self.date_string(date), ext);
new_log_name = format!("{}{}{}", name, self.date_to_string(date), ext);
}
}
new_log_name = first_file_path.trim_end_matches(&file_name).to_string() + &new_log_name;
Expand Down

0 comments on commit 4f41414

Please sign in to comment.