@@ -6,6 +6,7 @@ package assets
6
6
import (
7
7
"bytes"
8
8
"fmt"
9
+ "path"
9
10
"path/filepath"
10
11
11
12
"github.com/ipfs/go-ipfs/blocks/key"
@@ -16,12 +17,12 @@ import (
16
17
17
18
// initDocPaths lists the paths for the docs we want to seed during --init
18
19
var initDocPaths = []string {
19
- "init-doc/ about" ,
20
- "init-doc/ readme" ,
21
- "init-doc/ help" ,
22
- "init-doc/ contact" ,
23
- "init-doc/ security-notes" ,
24
- "init-doc/ quick-start" ,
20
+ path . Join ( "init-doc" , " about") ,
21
+ path . Join ( "init-doc" , " readme") ,
22
+ path . Join ( "init-doc" , " help") ,
23
+ path . Join ( "init-doc" , " contact") ,
24
+ path . Join ( "init-doc" , " security-notes") ,
25
+ path . Join ( "init-doc" , " quick-start") ,
25
26
}
26
27
27
28
// SeedInitDocs adds the list of embedded init documentation to the passed node, pins it and returns the root key
@@ -30,8 +31,8 @@ func SeedInitDocs(nd *core.IpfsNode) (*key.Key, error) {
30
31
}
31
32
32
33
var initDirIndex = []string {
33
- "../ vendor/ dir-index-html-v1.0.0/ knownIcons.txt" ,
34
- "../ vendor/ dir-index-html-v1.0.0/ dir-index.html" ,
34
+ path . Join ( ".." , " vendor" , " dir-index-html-v1.0.0" , " knownIcons.txt") ,
35
+ path . Join ( ".." , " vendor" , " dir-index-html-v1.0.0" , " dir-index.html") ,
35
36
}
36
37
37
38
func SeedInitDirIndex (nd * core.IpfsNode ) (* key.Key , error ) {
0 commit comments