Inode added to ls -l (#2711)

This commit is contained in:
Chris Gillespie 2020-10-30 10:39:01 -07:00 committed by GitHub
parent 5faa82e323
commit f97561c416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -942,6 +942,7 @@ pub(crate) fn dir_entry_dict(
"type",
"target",
"num_links",
"inode",
"readonly",
"mode",
"uid",
@ -1019,6 +1020,9 @@ pub(crate) fn dir_entry_dict(
let nlinks = md.nlink();
dict.insert_untagged("num_links", UntaggedValue::string(nlinks.to_string()));
let inode = md.ino();
dict.insert_untagged("inode", UntaggedValue::string(inode.to_string()));
if let Some(user) = users::get_user_by_uid(md.uid()) {
dict.insert_untagged(
"uid",

View File

@ -298,6 +298,7 @@ fn list_all_columns() {
"type",
"target",
"num_links",
"inode",
"readonly",
"mode",
"uid",