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

Erroneous output with multiple directory arguments #2

Open
elehtoranta opened this issue Oct 23, 2022 · 0 comments
Open

Erroneous output with multiple directory arguments #2

elehtoranta opened this issue Oct 23, 2022 · 0 comments

Comments

@elehtoranta
Copy link
Owner

Input of multiple directory arguments and no non-directory arguments (e.g. regular files, symlinks, etc.) yields an extra newline to the start of the input. This might require either:

  1. Simply reordering the output listing and adding a condition to stop printing newlines at the last element, whatever it may be, or (preferably)
  2. Refactoring the output formatting functionality to a more modular approach, as the formatting done for list items is spread out to multiple functions as of now.
    If option 2. is followed, this warrants a more invasive refactoring of the list_* functions altogether. (See issue: TBD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant