Replies: 1 comment
-
I believe Rex docs doesn't mention the measurement unit of the value because Rex itself doesn't do any conversions itself or make any guarantees/assumptions about the unit.
I'd like to better understand what made you assume the value would be in bytes. Does the
Yes,
I'm afraid that guaranteeing uniform reporting units could quickly get out of hand, because Currently I don't think it would be responsible to promise that Rex core will become that uniform frontend to masks all those differences (though I'm open to discuss ideas about how it would be possible in a sustainable way). What might make more sense for Rex core is to clarify that
And perhaps even in the module description:
What do you think? Would something like that have helped you better understand what the |
Beta Was this translation helpful? Give feedback.
-
There's no mention of kilobytes in the command documentation below:
I was trying to convert the result wih Number::Bytes::Human, and my assumption was the result will be in bytes. It seems to follow
du
, but explicit mention of the unit size would help many Perl users.du($path)
Returns the disk usage of
$path
.This command will not be reported.
https://metacpan.org/pod/Rex::Commands::Fs#du($path)
Beta Was this translation helpful? Give feedback.
All reactions