We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96503ab + e0d86c9 commit a1b28daCopy full SHA for a1b28da
add.go
@@ -6,7 +6,7 @@ import (
6
"errors"
7
"io"
8
"os"
9
- "path"
+ "path/filepath"
10
11
"github.com/ipfs/go-ipfs-files"
12
)
@@ -90,7 +90,7 @@ func (s *Shell) AddDir(dir string) (string, error) {
90
if err != nil {
91
return "", err
92
}
93
- slf := files.NewSliceDirectory([]files.DirEntry{files.FileEntry(path.Base(dir), sf)})
+ slf := files.NewSliceDirectory([]files.DirEntry{files.FileEntry(filepath.Base(dir), sf)})
94
reader := files.NewMultiFileReader(slf, true)
95
96
resp, err := s.Request("add").
0 commit comments