Hey guys,
moving my question from #general so it doesn't get lost in there.
I want to list all files and directories in my git repo with dagger, calling Entries on *dagger.Directory, and it doesn't return all files and directories recursively. Which is not surprising, just wanted to ask if anyone thought about how to get all entries recursively? I only get current directory files and subdirectories.
My code looks something like this
readme, err := client.
Git("git@private-repository.git").
Branch("main").
Tree(
dagger.GitRefTreeOpts{
SSHAuthSocket: client.Host().UnixSocket(sshAgentPath),
},
).
Directory("docs").
Entries(ctx)
What I'm aiming at is to list the file paths, if there are files of specific name I exclude them from the directory, ideally using WithoutFile, then Export the directory to host workdir.