yorukot / superfile

Pretty fancy and modern terminal file manager
https://superfile.netlify.app
MIT License
7.79k stars 179 forks source link

Use built-in unix command `stat` instead of `exiftool` #306

Open MrPandir opened 4 months ago

MrPandir commented 4 months ago

The part you want to Enhancement

We can get file attributes without additional programs, but use the built-in stat utility.

Why it is necessary to enhancement

We won't need to install a third party program.

Additional context

Windows also has an alternative command: Windows equivalent to the unix "stat" command?. You may also find this useful: stat(1) — Linux manual page.

Here's what it looks like on macOS and ubuntu. You can also specify the output format you want via the --format argument.

Screenshot 2024-07-28 at 10 29 06 Screenshot 2024-07-28 at 10 29 08
yorukot commented 4 months ago

Looks great. It will be better if we don't need to install another tool.