Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mimic du when running in scripts #96

Closed
xmstspider opened this issue Oct 21, 2021 · 1 comment
Closed

Mimic du when running in scripts #96

xmstspider opened this issue Oct 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@xmstspider
Copy link

xmstspider commented Oct 21, 2021

Hi, thanks for the gdu, I tested it recently and I really like it. When running in my scripts, I would like to mimic the du command to get out the same information for my parser.

  1. I have directory e.g. /some/path/a with some sub-directories. When running du --summarize /some/path/a, I will get a size of that particular directory. Runnig gdu -cnp /some/path/a prints
    78GB /dir1
    45GB /dir2
    where dir1 and dir2 are sub-dirs of /some/path/a, but I won't get the summary size of /some/path/a. Am I missing something?

  2. There is an option for ignoring strings (-I), but would it be possible to implement exclude file, i.e. I use this command du --exclude-from SOME_FILE, it would be great to be able to do same thing in gdu

Thanks and keep up the good work :-)

@dundee
Copy link
Owner

dundee commented Oct 22, 2021

Hi @xmstspider, thank you for great suggestions!

  1. Will add -s, --summarize option for this.
  2. Will add -X, --ignore-from options for reading ignore patterns from file

@dundee dundee added the enhancement New feature or request label Oct 22, 2021
@dundee dundee closed this as completed in f7308aa Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants