Skip to content

Do not show header if path is a directory #292

@sharkdp

Description

@sharkdp
> bat some-directory
[bat error]: Is a directory (os error 21)
───────┬──────────────────────────────────────────────────
       │ File: some-directory
───────┼──────────────────────────────────────────────────

When calling bat on a directory (more typically, when using bat *), we should not print a header for this entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions