Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

I want to recursively iterate over the folder relative url and retrieve all files which satisfy certain filters

Open AlokRanjanSwain opened this issue 1 year ago • 1 comments

AlokRanjanSwain avatar Feb 16 '24 11:02 AlokRanjanSwain

files = (
    ctx.web
    .get_folder_by_server_relative_url(folder_url)
    .get_files(True)
    .filter("version eq '2010'")
    .get()
    .execute_query()
)
for file in files:
    print(file.serverRelativeUrl)

It is doing recursive file retrieval but the filter was never applied.

@vgrem Any support on this

AlokRanjanSwain avatar Feb 16 '24 11:02 AlokRanjanSwain