fsize

command module
v1.21.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 21 Imported by: 0

README

fsize

This is a project of mine, basically to end my problem with the damn stat command that is unreadable.

Also, because I had free time and a desire to do something different that does not focus on Microsoft Windows.

The project is focused to be simple and easy to read, so don't expect very advanced functions, but I will probably add more according to my needs.

GIF PNG

Install

You can install it running

go install -v github.com/Tom5521/fsize@latest

However, I recommend this method more:

Basically because go takes a long time to automatically detect the newest tags. And also this installs the completions

git clone https://github.com/Tom5521/fsize.git
git checkout $(git describe --tags --abbrev=0) # Go to the latest tag
make local-install # Or it can be "root-install"

Documentation

Displays the file/folder properties.

Usage:
  fsize [flags]

Flags:
      --bin-info                  Displays the information of the binary
      --color                     enable or disable the color (default true)
      --config strings            Configure the variables used for preferences
                                  Example: "fsize --config 'always-show-progress=true,always-print-on-walk=false'".

                                  To see the available variables and their values run "fsize --print-settings".
  -d, --depth uint                Indicates the maximum depth to traverse within a directory;
                                  files/directories deeper than this will be skipped
  -l, --follow-symlinks           If enabled, the program will follow symbolic links
      --gen-bash-completion       Generate a completion file for bash
                                  if any, the first argument will be taken as output file.
      --gen-fish-completion       Generate a completion file for fish
                                  if any, the first argument will be taken as output file.
      --gen-zsh-completion        Generate a completion file for zsh
                                  if any, the first argument will be taken as output file.
  -h, --help                      help for fsize
  -i, --ignore strings            If ignore is not "", the files that match it will be excluded from the count.
                                  The pattern must be a regular expression unless the --wildcard flag is on
      --log string                Indicates the log level, which can be debug, info, warn, error, or fatal. (default "info")
  -s, --no-progress               Disable any progress indicator.
      --no-walk                   Skips walking inside the directories.
      --no-warns                  Hide possible warnings.
  -c, --not-clear-bar             Prevents the progress indicator from being cleared after finishing (default true)
  -f, --pattern strings           If the pattern is not "", only files that match it will be included in the count.
                                  The pattern must be a regular expression unless the --wildcard flag on
      --print-on-walk             Prints the name of the file being walked if a directory has been selected.
      --print-settings            Prints the current configuration values.
  -p, --progress                  Displays a file count and progress bar when counting and summing file sizes. (default true)
      --progress-delay duration   Specifies how long the program should be counting files
                                  before a progress indicator appears (default 1s)
      --update                    Automatically updates the program by overwriting the binary and regenerating the completions.
  -v, --version                   version for fsize
  -x, --warn-limit int            Indicates the maximum number of warnings that will be printed.
                                  If it is -1, there is no limit. (default 8)
  -w, --wildcard                  Switches --ignore & --pattern from regular expressions to wildcard patterns

Or by copying one of the binaries to your system PATH

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL