Canop / dysk

A linux utility to get information on filesystems, like df but better
https://dystroy.org/dysk
MIT License
890 stars 25 forks source link

Errors on macOS #27

Closed melMass closed 2 years ago

melMass commented 2 years ago

Hi,

very interesting utility, but on macOS I have the following error

$ lfs -a
> Error reading mounts: Could not read dir "/sys/block"
Canop commented 2 years ago

I'm sorry but lfs is only available for linux at the moment. See https://github.com/Canop/lfs/issues/24

(closing as dupe but you can comment further, and reopen if you think closing was a mistake)

Canop commented 2 years ago

Maybe the error message should be changed to ask the user to check they're one linux ? But at this point it means they've already lost time installing it...

Suggestions welcome.

Stargateur commented 2 years ago

rename to lfs_only_work_for_linus but it's may be too much.

Actually, you could do a build.rs check os and error if it's not linux. https://crates.io/crates/os_info