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

dua (non interactive) lost its ability to process files #194

Closed
TimB87 opened this issue Dec 11, 2023 · 3 comments Β· Fixed by #195
Closed

dua (non interactive) lost its ability to process files #194

TimB87 opened this issue Dec 11, 2023 · 3 comments Β· Fixed by #195
Labels
bug Something isn't working

Comments

@TimB87
Copy link

TimB87 commented Dec 11, 2023

Hi @Byron πŸ‘‹

It seems that starting with version 2.21.0 dua lost its ability to process single files in non interactive mode.

With 2.20.3:

~
tim@fs ❯ dua -V
dua 2.20.3                                                                                                                                                                                                    3ms
~
tim@fs ❯ dua emoji-test.txt
 628.00 KiB emoji-test.txt                                                                                                                                                                                    3ms
~
tim@fs ❯

With 2.21.0:

~
tim@fs ❯ dua -V
dua 2.21.0                                                                                                                                                                                                    3ms
~
tim@fs ❯ dua emoji-test.txt
Error: Not a directory (os error 20)                                                                                                                                                                          3ms
~
tim@fs ❯

The same applies to 2.22.0:

~
tim@fs ❯ dua -V
dua 2.22.0                                                                                                                                                                                                    3ms
~
tim@fs ❯ dua emoji-test.txt
Error: Not a directory (os error 20)                                                                                                                                                                          3ms
~
tim@fs ❯

It works with wildcards on every version though:

~
tim@fs ❯ dua emoji-*
 188.00 KiB emoji-sequences.txt
 628.00 KiB emoji-test.txt
 816.00 KiB total
@Byron
Copy link
Owner

Byron commented Dec 11, 2023

Thanks for letting me know! I will release a fix for it soon.

@Byron Byron added the bug Something isn't working label Dec 11, 2023
Byron added a commit that referenced this issue Dec 11, 2023
Running `dua <filename>` will once again provide size information
about that filename.
@TimB87
Copy link
Author

TimB87 commented Dec 11, 2023

#195 fixes the issue πŸ‘ Thanks a lot!

@TimB87 TimB87 closed this as completed Dec 11, 2023
@Byron
Copy link
Owner

Byron commented Dec 11, 2023

Great!

And here is the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants