Skip to content
Snippets Groups Projects
Commit d9e95448 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #10 from xTibor/fix_initfs

Fix the listing of `initfs:` directories
parents e43f5dda 1f5bea61
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ fn fill_from_location(f: &mut fs::File, loc: &Path ) -> Result<(), (Error)> {
let sub = folders.get(*dir).unwrap();
let mut first = true;
for child in sub.iter() {
let idx = child.rfind('/').unwrap() + 1;
let (_, c) = child.split_at(idx);
if first {
write!(f, "{}", c)?;
......@@ -108,4 +109,4 @@ mod gen {
}
}
").unwrap();
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment