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

improvement of -n output #201

Open
daniejstriata opened this issue Jan 18, 2023 · 4 comments
Open

improvement of -n output #201

daniejstriata opened this issue Jan 18, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@daniejstriata
Copy link
Collaborator

daniejstriata commented Jan 18, 2023

When doing a scan using -n you are presented with the following until the scan is completed.

image
The directory structure looks like:

var
- data
-- batch1
--- Dir1
--- Dir2
--- Dir3
--- Dir4
-- batch2
--- Dir1
--- Dir2
--- Dir3
--- Dir4
-- batch3
--- Dir1
--- Dir2
--- Dir3
--- Dir4

When I am inside data and running the scan will it not be possible for gdu to start displaying the completed sizes for the directories as they are completed? I'd then have a better understanding of how much has been processed.

 ⠼ Scanning... Total items: 1,575,919 size: 41.4 KiB
Found:
 1.5 GiB /batch1
 ...

or

Found:
 1.5 GiB /batch1
 ...
 ⠼ Scanning... Total items: 1,575,919 size: 41.4 KiB
@dundee dundee added the enhancement New feature or request label Feb 3, 2023
@dundee
Copy link
Owner

dundee commented Feb 3, 2023

Interesting idea. I think some more verbose output could be indeed beneficial.

@dundee
Copy link
Owner

dundee commented Feb 5, 2023

The problem is that we don't process the directories sequentially, but rather in random order and random depth. Which brings the speed of gdu. So it won't be easy to print some more verbose information about the subdirectories.

@daniejstriata
Copy link
Collaborator Author

Could it still print the top directory as it completes? Unless what you are saying implies that all the directories will complete roughly at the same time?

@dundee
Copy link
Owner

dundee commented Feb 7, 2023

We can try. In some cases it will complete at the same time. In some cases probably not.

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