Skip to content

ls --ncdu is broken when filtering by path #4910

@MichaelEischer

Description

@MichaelEischer

Output of restic version

Current master branch (pre 0.17.0)

What backend/service did you use to store the repository?

local

Problem description / Steps to reproduce

Create a backup of the restic source code:

./restic backup ../restic

Run ls --ncdu and let it filter by some paths, then ncdu (version 2.4) fails to load the output

./restic ls --ncdu latest /restic/cmd /restic/internal | ncdu -f -
Error importing file on line 55:1: expected ',' or ']'.

For me currently --ncdu only works if no path was specified.

Expected behavior

Valid output readable by ncdu.

Do you have any idea what may have caused this?

I guess I've messed up the output generated during tree traversal in #4550.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions