Skip to content

Commit

Permalink
Shell prints all attributes in DIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
thejpster committed Oct 7, 2023
1 parent a041eee commit 52e77c9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions examples/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,8 @@ impl Context {
};
self.volume_mgr.iterate_dir(s.directory, |entry| {
println!(
"{:12} {:9} {} {}",
entry.name,
entry.size,
entry.mtime,
if entry.attributes.is_directory() {
"<DIR>"
} else {
""
}
"{:12} {:9} {} {:?}",
entry.name, entry.size, entry.mtime, entry.attributes
);
})?;
} else if let Some(arg) = line.strip_prefix("cd ") {
Expand Down

0 comments on commit 52e77c9

Please sign in to comment.