diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-08-23 09:54:16 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-08-26 12:30:21 +0200 |
commit | e1d767d06684f8c070c4ce6801776ed1170a3a00 (patch) | |
tree | d0f5f6a4e5645f422032770b1117ca560bcd9fb4 /src/repository | |
parent | de7b61ba93d62ef295f127d0d318281179d04961 (diff) |
Store pathes to pkg.toml files as well
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/repository')
-rw-r--r-- | src/repository/fs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repository/fs.rs b/src/repository/fs.rs index 6cfd2ff..a865f3f 100644 --- a/src/repository/fs.rs +++ b/src/repository/fs.rs @@ -16,6 +16,7 @@ use resiter::AndThen; pub struct FileSystemRepresentation { root: PathBuf, elements: HashMap<PathComponent, Element>, + files: Vec<PathBuf>, } enum Element { @@ -65,6 +66,7 @@ impl FileSystemRepresentation { let mut fsr = FileSystemRepresentation { root: root.clone(), elements: HashMap::new(), + files: vec![], }; WalkDir::new(root) @@ -77,6 +79,7 @@ impl FileSystemRepresentation { .map_err(Error::from) .and_then_ok(|de| { let mut curr_hm = &mut fsr.elements; + fsr.files.push(de.path().to_path_buf()); // traverse the HashMap tree for cmp in de.path().components() { |