From a8aa4eb06c1fc03278add3b2513dbbd890df04d5 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 10 Sep 2017 20:28:21 +0200 Subject: [PATCH] Rename parameter filename -> path --- cmd/restic/exclude.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/exclude.go b/cmd/restic/exclude.go index 58aef7f1b..369c4df9a 100644 --- a/cmd/restic/exclude.go +++ b/cmd/restic/exclude.go @@ -17,7 +17,7 @@ import ( // RejectFunc is a function that takes a filename and os.FileInfo of a // file that would be included in the backup. The function returns true if it // should be excluded (rejected) from the backup. -type RejectFunc func(filename string, fi os.FileInfo) bool +type RejectFunc func(path string, fi os.FileInfo) bool // rejectByPattern returns a RejectFunc which rejects files that match // one of the patterns.