Skip to content

A method to get all child files and folders #1211

Answered by jansenbe
adamfisher asked this question in Q&A
Discussion options

You must be logged in to vote

I've fixed #1213 , so you can use those methods as well from the next nightly. Looking at your repro code you seem to be handling the metadata updates via the respective IFile and IFolder ListItemAllFields collection. As you're anyhow doing a query to first get these list items it's more efficient to immediately update them:

                    // read the added items via a CAML query
                    string viewXml = @"<View>
                                        <ViewFields>
                                          <FieldRef Name='Title' />
                                          <FieldRef Name='FileRef' />
                                          <FieldRef Name='ContentTypeId' />

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@adamfisher
Comment options

@adamfisher
Comment options

@adamfisher
Comment options

@adamfisher
Comment options

Comment options

You must be logged in to vote
9 replies
@adamfisher
Comment options

@adamfisher
Comment options

@adamfisher
Comment options

@jansenbe
Comment options

Answer selected by jansenbe
@adamfisher
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants