start reimplementing main functions again

This commit is contained in:
steven-omaha
2023-01-09 18:30:12 +01:00
parent ce98fa1cea
commit 4907787911
6 changed files with 107 additions and 46 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ impl Group {
let path = crate::path::get_pacdef_group_dir().context("getting pacdef group dir")?;
for entry in path.read_dir().context("reading group dir")? {
let file = entry.context("getting a file")?;
let name = file.file_name();
let path = file.path();
let group = Group::try_from(name)?;
let group = Group::try_from(dbg!(path))?;
result.insert(group);
}