"encoding/binary"
"errors"
"io"
- "path"
+ "path/filepath"
"strings"
)
-const pathSeparator = "/" // File path separator TODO: make configurable to support Windows
-
// FilePathItem represents the file or directory portion of a delimited file path (e.g. foo and bar in "/foo/bar")
// 00 00
// 09
out = append(out, string(i.Name))
}
- return path.Join(out...)
+ return filepath.Join(out...)
}
func readPath(fileRoot string, filePath, fileName []byte) (fullPath string, err error) {
}
}
- fullPath = path.Join(
+ fullPath = filepath.Join(
"/",
fileRoot,
fp.String(),
- path.Join("/", string(fileName)),
+ filepath.Join("/", string(fileName)),
)
return fullPath, nil