diff --git a/examples/sharepoint/folders/list_folders.py b/examples/sharepoint/folders/list_folders.py index c84d3260..5c34dc79 100644 --- a/examples/sharepoint/folders/list_folders.py +++ b/examples/sharepoint/folders/list_folders.py @@ -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(