We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dec29f commit 6487347Copy full SHA for 6487347
src/uu/du/src/du.rs
@@ -171,7 +171,7 @@ impl Stat {
171
Ok(Self {
172
path: path.to_path_buf(),
173
is_dir: metadata.is_dir(),
174
- size: if path.is_dir() { 0 } else { metadata.len() },
+ size: if metadata.is_dir() { 0 } else { metadata.len() },
175
blocks: metadata.blocks(),
176
inodes: 1,
177
inode: Some(file_info),
@@ -189,7 +189,7 @@ impl Stat {
189
190
191
192
193
blocks: size_on_disk / 1024 * 2,
194
195
inode: file_info,
0 commit comments