forked from extern/nushell
Inode added to ls -l (#2711)
This commit is contained in:
parent
5faa82e323
commit
f97561c416
@ -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",
|
||||
|
@ -298,6 +298,7 @@ fn list_all_columns() {
|
||||
"type",
|
||||
"target",
|
||||
"num_links",
|
||||
"inode",
|
||||
"readonly",
|
||||
"mode",
|
||||
"uid",
|
||||
|
Loading…
Reference in New Issue
Block a user