mirror of
https://github.com/nushell/nushell.git
synced 2025-06-18 16:07:02 +02:00
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",
|
"type",
|
||||||
"target",
|
"target",
|
||||||
"num_links",
|
"num_links",
|
||||||
|
"inode",
|
||||||
"readonly",
|
"readonly",
|
||||||
"mode",
|
"mode",
|
||||||
"uid",
|
"uid",
|
||||||
@ -1019,6 +1020,9 @@ pub(crate) fn dir_entry_dict(
|
|||||||
let nlinks = md.nlink();
|
let nlinks = md.nlink();
|
||||||
dict.insert_untagged("num_links", UntaggedValue::string(nlinks.to_string()));
|
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()) {
|
if let Some(user) = users::get_user_by_uid(md.uid()) {
|
||||||
dict.insert_untagged(
|
dict.insert_untagged(
|
||||||
"uid",
|
"uid",
|
||||||
|
@ -298,6 +298,7 @@ fn list_all_columns() {
|
|||||||
"type",
|
"type",
|
||||||
"target",
|
"target",
|
||||||
"num_links",
|
"num_links",
|
||||||
|
"inode",
|
||||||
"readonly",
|
"readonly",
|
||||||
"mode",
|
"mode",
|
||||||
"uid",
|
"uid",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user