Skip to content

Commit

Permalink
Handle '*' path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarzik committed Feb 14, 2024
1 parent 216fa73 commit a7f6248
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,13 @@ impl Pcc {

let prefix = lstpath.chars().next().expect("Empty LST path");
match prefix {
// todo - don't know how to handle these wildcarded list files yet
'*' => {
println!("Pcc.read_lst({}) - SKIPPING", lstpath);
return Ok(());
}

// absolute path
'/' => {
fpath.push_str(lstpath);
}

// base directory is toplevel data dir
'@' => {
'@' | '*' => {
let relpath = &lstpath[1..];
fpath.push_str(&self.config.datadir);
fpath.push_str(relpath);
Expand Down

0 comments on commit a7f6248

Please sign in to comment.