Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
2b937007
Commit
2b937007
authored
9 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path creation so it works on windows
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
5cab903d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
assets/assets.go
assets/assets.go
+8
-8
No files found.
assets/assets.go
View file @
2b937007
...
...
@@ -16,12 +16,12 @@ import (
// initDocPaths lists the paths for the docs we want to seed during --init
var
initDocPaths
=
[]
string
{
"init-doc
/
about"
,
"init-doc
/
readme"
,
"init-doc
/
help"
,
"init-doc
/
contact"
,
"init-doc
/
security-notes"
,
"init-doc
/
quick-start"
,
filepath
.
Join
(
"init-doc
"
,
"
about"
)
,
filepath
.
Join
(
"init-doc
"
,
"
readme"
)
,
filepath
.
Join
(
"init-doc
"
,
"
help"
)
,
filepath
.
Join
(
"init-doc
"
,
"
contact"
)
,
filepath
.
Join
(
"init-doc
"
,
"
security-notes"
)
,
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
...
...
@@ -30,8 +30,8 @@ func SeedInitDocs(nd *core.IpfsNode) (*key.Key, error) {
}
var
initDirIndex
=
[]
string
{
"../
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
"
,
"
knownIcons.txt"
)
,
filepath
.
Join
(
".."
,
"
vendor
"
,
"
dir-index-html-v1.0.0
"
,
"
dir-index.html"
)
,
}
func
SeedInitDirIndex
(
nd
*
core
.
IpfsNode
)
(
*
key
.
Key
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment