GO core UnixfFS API how to wrap ADD a file

Greetings, when using the UnixfsAPI to add a file, how does one wrap it with a directory (ie how to achieve the same functionality as calling ipfs add -w ).

I can find nothing in options · pkg.go.dev