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 }