(filename string)
| 50 | } |
| 51 | |
| 52 | func (sfs *worktreeFilesystem) Create(filename string) (billy.File, error) { |
| 53 | if err := sfs.validPath(filename); err != nil { |
| 54 | return nil, fmt.Errorf("create: %w", err) |
| 55 | } |
| 56 | return sfs.Filesystem.Create(filename) |
| 57 | } |
| 58 | |
| 59 | func (sfs *worktreeFilesystem) Open(filename string) (billy.File, error) { |
| 60 | if err := sfs.validReadPath(filename); err != nil { |