From e046a2a6da8277f3a71afdd30986159175ec61f8 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 28 May 2017 10:41:57 +0200 Subject: [PATCH] sftp: Use path instead of filepath --- src/restic/backend/sftp/sftp.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/restic/backend/sftp/sftp.go b/src/restic/backend/sftp/sftp.go index 3eedfa76d..8070d01fe 100644 --- a/src/restic/backend/sftp/sftp.go +++ b/src/restic/backend/sftp/sftp.go @@ -7,7 +7,6 @@ import ( "os" "os/exec" "path" - "path/filepath" "restic" "strings" "time" @@ -416,7 +415,7 @@ func (r *SFTP) List(t restic.FileType, done <-chan struct{}) <-chan string { } select { - case ch <- filepath.Base(walker.Path()): + case ch <- path.Base(walker.Path()): case <-done: return }