提交 2b937007 作者: Jeromy

fix path creation so it works on windows

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 5cab903d
...@@ -16,12 +16,12 @@ import ( ...@@ -16,12 +16,12 @@ import (
// initDocPaths lists the paths for the docs we want to seed during --init // initDocPaths lists the paths for the docs we want to seed during --init
var initDocPaths = []string{ var initDocPaths = []string{
"init-doc/about", filepath.Join("init-doc", "about"),
"init-doc/readme", filepath.Join("init-doc", "readme"),
"init-doc/help", filepath.Join("init-doc", "help"),
"init-doc/contact", filepath.Join("init-doc", "contact"),
"init-doc/security-notes", filepath.Join("init-doc", "security-notes"),
"init-doc/quick-start", filepath.Join("init-doc", "quick-start"),
} }
// SeedInitDocs adds the list of embedded init documentation to the passed node, pins it and returns the root key // SeedInitDocs adds the list of embedded init documentation to the passed node, pins it and returns the root key
...@@ -30,8 +30,8 @@ func SeedInitDocs(nd *core.IpfsNode) (*key.Key, error) { ...@@ -30,8 +30,8 @@ func SeedInitDocs(nd *core.IpfsNode) (*key.Key, error) {
} }
var initDirIndex = []string{ var initDirIndex = []string{
"../vendor/dir-index-html-v1.0.0/knownIcons.txt", filepath.Join("..", "vendor", "dir-index-html-v1.0.0", "knownIcons.txt"),
"../vendor/dir-index-html-v1.0.0/dir-index.html", filepath.Join("..", "vendor", "dir-index-html-v1.0.0", "dir-index.html"),
} }
func SeedInitDirIndex(nd *core.IpfsNode) (*key.Key, error) { func SeedInitDirIndex(nd *core.IpfsNode) (*key.Key, error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论