mirror of https://github.com/markbates/pkger.git
should've never let it start
This commit is contained in:
parent
57ff4f849b
commit
33269b54d3
|
@ -188,6 +188,7 @@ func (fx *Pkger) Add(f pkging.File) error {
|
||||||
|
|
||||||
// Create creates the named file with mode 0666 (before umask) - It's actually 0644, truncating it if it already exists. If successful, methods on the returned File can be used for I/O; the associated file descriptor has mode O_RDWR.
|
// Create creates the named file with mode 0666 (before umask) - It's actually 0644, truncating it if it already exists. If successful, methods on the returned File can be used for I/O; the associated file descriptor has mode O_RDWR.
|
||||||
func (fx *Pkger) Create(name string) (pkging.File, error) {
|
func (fx *Pkger) Create(name string) (pkging.File, error) {
|
||||||
|
fx.MkdirAll("/", 0755)
|
||||||
pt, err := fx.Parse(name)
|
pt, err := fx.Parse(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue