Skip to content

Commit

Permalink
Merge pull request #802 from Yusuf-ASM/patch-1
Browse files Browse the repository at this point in the history
listing folders insted of listing files
  • Loading branch information
vgrem authored Dec 23, 2023
2 parents 789da26 + dd7fe29 commit 159755f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/sharepoint/folders/list_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

ctx = ClientContext(test_team_site_url).with_credentials(test_client_credentials)
folders = (
ctx.web.default_document_library().root_folder.get_files(False).execute_query()
ctx.web.default_document_library().root_folder.get_folders(False).execute_query()
)
for folder in folders:
print(
Expand Down

0 comments on commit 159755f

Please sign in to comment.