Replies: 2 comments
-
Hi @lllama, thank you! Did you have a chance taking a look into the docs? https://go.spflow.com/samples/documents Sounds that it contains what you asking: // Getting folder object
foler := sp.Web().GetFolder("MyLibrary/Folder01")
// Getting folder's files (entry object)
files := foler.Files() and downloading a file. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @koltyakov! I was just missing a couple of steps to get the filenames for the folder. I came up with the following: files := sp.Web().GetFolder("Shared%20Documents").Files()
itemsResp, _ := files.Get()
for _, file := range itemsResp.Data() {
fmt.Println(file.Data().Name)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to get an example of how to list files in a folder? I'm trying to list and download all the files in the "Shared Documents" folder on my site. Bonus points for decending into folders.
Thanks for the great library!
Beta Was this translation helpful? Give feedback.
All reactions