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.
1 parent 96503ab commit 6829356Copy full SHA for 6829356
add.go
@@ -4,9 +4,9 @@ import (
4
"context"
5
"encoding/json"
6
"errors"
7
+ "filepath"
8
"io"
9
"os"
- "path"
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