2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 11:46:36 +00:00

sftp: Use path instead of filepath

This commit is contained in:
Alexander Neumann 2017-05-28 10:41:57 +02:00
parent 8395b53400
commit e046a2a6da

View File

@ -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
}