Skip to content

Ensure Folder Exists based on a Specific Property #1204

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

You must be logged in to vote

For whatever reason the child folders on a folder.Folders call does not have the properties loaded. That collection always comes back zero items which is the source of my frustration. I'm sure it has to do with how the framework loads items but I would have expected one of these approaches to actually load them:

await childFolder.EnsurePropertiesAsync(f => f.Properties); // Doesn't work - zero properties on the folder
await childFolder.LoadAsync(f => f.Properties); // Doesn't work - zero properties on the folder
childFolder = await childFolder.GetAsync(f => f.Properties); // Doesn't work - zero properties on the folder

I have to manually call back out to the server to get it to load the p…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@jansenbe
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jansenbe
Comment options

@adamfisher
Comment options

Answer selected by adamfisher
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