🔍 Code Extractor

Browse Components

Showing 20 of 1696 components

  • function test_folder_structure

    Tests SharePoint folder structure by listing root-level folders, displaying their contents, and providing a summary of total folders and documents.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py | Lines: 16-81

    sharepoint testing folder-structure document-management microsoft-graph
  • class SharePointGraphClient

    SharePoint client using Microsoft Graph API. This bypasses SharePoint REST API app-only token issues.

    File: /tf/active/vicechatdev/SPFCsync/sharepoint_graph_client.py | Lines: 8-526

    class sharepointgraphclient
  • function analyze_structure

    Analyzes and reports on the folder structure of a SharePoint site, displaying folder paths, file counts, and searching for expected folder patterns.

    File: /tf/active/vicechatdev/SPFCsync/analyze_structure.py | Lines: 10-92

    sharepoint analysis folder-structure microsoft-graph audit
  • function check_site_vs_channels

    Diagnostic function that analyzes and compares SharePoint site structure, specifically examining the main site document library versus Teams channel document libraries to identify the correct library for synchronization.

    File: /tf/active/vicechatdev/SPFCsync/check_site_library.py | Lines: 10-167

    sharepoint diagnostic microsoft-graph document-library teams-channels
  • function dry_run_test

    Performs a dry run test of SharePoint to FileCloud synchronization, analyzing up to a specified number of documents without actually transferring files.

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py | Lines: 40-265

    dry-run testing sharepoint filecloud sync
  • function format_file_size

    Converts a file size in bytes to a human-readable string format with appropriate units (B, KB, MB, GB, TB).

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py | Lines: 19-28

    file-size formatting utility human-readable bytes-conversion
  • function format_file_size_v1

    Converts a file size in bytes to a human-readable string format with appropriate units (B, KB, MB, GB, TB).

    File: /tf/active/vicechatdev/SPFCsync/test_upload_modalities.py | Lines: 16-25

    file-size formatting utility human-readable bytes-conversion
  • function signal_handler

    A signal handler function that gracefully handles SIGINT (Ctrl+C) interrupts by logging a shutdown message and exiting the program cleanly.

    File: /tf/active/vicechatdev/SPFCsync/main.py | Lines: 25-28

    signal-handling interrupt-handling graceful-shutdown SIGINT Ctrl+C
  • function test_sharepoint_with_token

    Tests SharePoint REST API connectivity and authentication by making a GET request to retrieve site information using a provided access token.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py | Lines: 126-149

    sharepoint api-testing authentication oauth rest-api
  • function test_different_scopes

    Tests OAuth2 authentication with different permission scopes for SharePoint and Microsoft Graph APIs, attempting to acquire access tokens and validate them against a SharePoint site.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py | Lines: 70-124

    authentication oauth2 sharepoint microsoft-graph azure-ad
  • function test_tenant_admin_center_approach

    Displays detailed troubleshooting instructions for resolving SharePoint 'Unsupported app only token' errors by providing three alternative configuration approaches through tenant admin center.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py | Lines: 25-68

    sharepoint troubleshooting authentication azure admin
  • class SharePointClient

    A SharePoint client class that provides methods for connecting to SharePoint sites, retrieving documents recursively, downloading file content, and managing document metadata using app-only authentication.

    File: /tf/active/vicechatdev/SPFCsync/sharepoint_client.py | Lines: 11-173

    sharepoint document-management file-sync azure-ad authentication
  • function provide_admin_instructions

    Displays comprehensive administrative instructions for fixing SharePoint app-only authentication issues by loading configuration and presenting multiple resolution options.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py | Lines: 173-217

    sharepoint admin-instructions troubleshooting authentication app-only-auth
  • function test_drive_items

    Tests access to items in a Microsoft SharePoint drive by querying the Microsoft Graph API and verifying the response.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py | Lines: 143-171

    microsoft-graph-api sharepoint authentication api-testing drive-access
  • function test_site_drive_access

    Tests access to a SharePoint site's document library (drives) via Microsoft Graph API and attempts to access the first drive's root items.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py | Lines: 110-141

    microsoft-graph sharepoint api-testing authentication document-library
  • function test_graph_sites_api

    Tests Microsoft Graph API access to SharePoint sites by attempting to list available sites and locate a specific target site (vicebio.com), then tests drive access if found.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py | Lines: 69-108

    microsoft-graph sharepoint api-testing authentication oauth2
  • function test_graph_api_access

    Tests Microsoft Graph API access by obtaining an OAuth2 token and verifying connectivity to check tenant settings for SharePoint integration.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py | Lines: 25-67

    microsoft-graph authentication oauth2 sharepoint azure-ad
  • function test_sharepoint_api_call

    Tests SharePoint REST API connectivity by making an authenticated GET request to retrieve basic site information and validates the access token and permissions.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py | Lines: 145-187

    sharepoint api-testing authentication oauth rest-api
  • function test_sharepoint_token

    Tests SharePoint OAuth2 authentication by acquiring an access token using client credentials flow and validates it with a SharePoint API call.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py | Lines: 79-143

    sharepoint oauth2 authentication azure-ad access-token
  • function test_azure_token

    Tests Azure AD authentication by attempting to acquire an OAuth2 access token using client credentials flow for Microsoft Graph API access.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py | Lines: 29-77

    azure authentication oauth2 access-token microsoft-graph