-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Improve filter function for restore #223
Copy link
Copy link
Closed
Labels
type: feature enhancementimproving existing featuresimproving existing features
Description
In #218 we discussed the limitations of the currently used function filepath.Match for selecting files that should be restored. This filter is based on the shell globbing (e.g. *.go) and only applies to the file name, it doesn't handle separator chars (/) at all.
This issue should track the progress on improving the filters on what is restored. I'm thinking about something like zsh globbing, so that users can easily do the following:
- Filter
/foo/*/*.gorestores all files ending with.gofrom any subdirs offooin the backup - Filter
**/*.gorestores all.gofiles from all dirs in the backup
etc. Any other thoughts on these filter expressions?
We could just use a regex, but that feels like overkill for me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: feature enhancementimproving existing featuresimproving existing features