Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlokRanjanSwain opened this issue Feb 16, 2024 · 1 comment
Labels

Comments

@AlokRanjanSwain
Copy link

No description provided.

@AlokRanjanSwain AlokRanjanSwain changed the title I have a folder relative url, I have a folder relative url Feb 16, 2024
@AlokRanjanSwain AlokRanjanSwain changed the title I have a folder relative url I want to recursively iterate over the folder relative url and retrieve all files which satisfy certain filters Feb 16, 2024
@AlokRanjanSwain
Copy link
Author

AlokRanjanSwain commented Feb 16, 2024

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

@vgrem vgrem added the question label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants