mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
convert path 2 filepath
This commit is contained in:
parent
4f2dfe7015
commit
7fd348cf79
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ package source
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
@ -35,7 +34,7 @@ func TestAddFile(t *testing.T) {
|
|||
|
||||
p := test.filename
|
||||
if !filepath.IsAbs(test.filename) {
|
||||
p = path.Join(src.Base, test.filename)
|
||||
p = filepath.Join(src.Base, test.filename)
|
||||
}
|
||||
|
||||
if err := src.add(p, bytes.NewReader([]byte(test.content))); err != nil {
|
||||
|
|
Loading…
Reference in a new issue