should've never let it start

This commit is contained in:
Mark Bates 2019-10-18 16:19:45 -04:00
parent 57ff4f849b
commit 33269b54d3
1 changed files with 1 additions and 0 deletions

View File

@ -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