Merge pull request #1941 from mholt/lsfilter

ls: Implement directory filter, optionally subfolders
This commit is contained in:
Alexander Neumann
2018-08-13 21:58:32 +02:00
2 changed files with 108 additions and 12 deletions

15
changelog/unreleased/1941 Normal file
View File

@@ -0,0 +1,15 @@
Enhancement: Add directory filter to ls command
The ls command can now be filtered by directories, so that only files in the
given directories will be shown. If the --recursive flag is specified, then
ls will traverse subfolders and list their files as well.
It used to be possible to specify multiple snapshots, but that has been
replaced by only one snapshot and the possibility of specifying multiple
directories.
Specifying directories constrains the walk, which can significantly speed up
the listing.
https://github.com/restic/restic/issues/1940
https://github.com/restic/restic/pull/1941