Skip to content

Commit 52e77c9

Browse files
committed
Shell prints all attributes in DIR.
1 parent a041eee commit 52e77c9

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

examples/shell.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,8 @@ impl Context {
5959
};
6060
self.volume_mgr.iterate_dir(s.directory, |entry| {
6161
println!(
62-
"{:12} {:9} {} {}",
63-
entry.name,
64-
entry.size,
65-
entry.mtime,
66-
if entry.attributes.is_directory() {
67-
"<DIR>"
68-
} else {
69-
""
70-
}
62+
"{:12} {:9} {} {:?}",
63+
entry.name, entry.size, entry.mtime, entry.attributes
7164
);
7265
})?;
7366
} else if let Some(arg) = line.strip_prefix("cd ") {

0 commit comments

Comments
 (0)