Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
woky committed Aug 29, 2023
1 parent 516f287 commit cacbdf7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/fsutil/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (
)

type CreateOptions struct {
Path string
Mode fs.FileMode
Data io.Reader
Link string
Path string
Mode fs.FileMode
Data io.Reader
Link string
// If MakeParents is true, missing parent directories of Path are
// created with permissions 0755.
MakeParents bool
}

// Creates file according to passed CreateOptions.
// If o.MakeParents is true, missing parent directories of o.Path are
// created with permissions 0755.
// Creates a filesystem entry according to the provided options.
func Create(o *CreateOptions) error {
var err error
if o.MakeParents {
Expand Down

0 comments on commit cacbdf7

Please sign in to comment.