mirror of
https://github.com/nushell/nushell.git
synced 2024-11-08 01:24:38 +01:00
* Fix #5578, assume pipe file be zero-sized * rust fmt
This commit is contained in:
parent
6efd1bcb3f
commit
0ba86d7eb8
@ -451,8 +451,10 @@ pub(crate) fn dir_entry_dict(
|
||||
|
||||
cols.push("size".to_string());
|
||||
if let Some(md) = metadata {
|
||||
let zero_sized =
|
||||
file_type == "socket" || file_type == "block device" || file_type == "char device";
|
||||
let zero_sized = file_type == "pipe"
|
||||
|| file_type == "socket"
|
||||
|| file_type == "char device"
|
||||
|| file_type == "block device";
|
||||
|
||||
if md.is_dir() {
|
||||
if du {
|
||||
|
Loading…
Reference in New Issue
Block a user