🔍 Code Extractor

Browse Components

Showing 20 of 307 components

  • function search_for_folders

    Searches for specific predefined folders in a SharePoint site using Microsoft Graph API and prints the search results with their locations.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 224-246

    sharepoint microsoft-graph folder-search api document-management
  • function explore_alternative_endpoints

    Tests multiple Microsoft Graph API endpoints to locate missing folders in a SharePoint drive by trying different URL patterns and searching for expected folders.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 188-222

    sharepoint microsoft-graph-api diagnostic debugging api-testing
  • function explore_site_lists

    Retrieves and displays all SharePoint lists from a specified site using Microsoft Graph API, printing their display names, IDs, template types, and web URLs.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 165-186

    sharepoint microsoft-graph api lists discovery
  • function explore_library_items

    Retrieves and displays items from a SharePoint document library using Microsoft Graph API, showing the total count and details of up to 5 items.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 144-163

    sharepoint microsoft-graph document-library api rest
  • function explore_document_libraries

    Retrieves and displays all document libraries from a SharePoint site using Microsoft Graph API, then explores items within each library.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 114-142

    sharepoint microsoft-graph document-libraries api-integration data-exploration
  • function explore_drive_root

    Retrieves and displays the contents of a SharePoint drive's root directory, showing folders and files with their counts and names.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 89-112

    sharepoint microsoft-graph api drive-exploration file-system
  • function explore_all_drives

    Retrieves and displays all document drives from a SharePoint site using Microsoft Graph API, then explores the root folder of each drive.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 65-87

    sharepoint microsoft-graph api drives document-libraries
  • function explore_site_structure

    Explores and displays the complete structure of a SharePoint site using Microsoft Graph API, including drives, document libraries, lists, and alternative API endpoints.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py | Lines: 17-63

    sharepoint microsoft-graph site-exploration diagnostic api-discovery
  • function load_config

    Parses a .env file and loads key-value pairs into a dictionary, ignoring comments and handling errors gracefully.

    File: /tf/active/vicechatdev/SPFCsync/grant_sharepoint_access.py | Lines: 10-22

    configuration environment-variables file-parsing dotenv settings
  • function load_env_file

    Reads and parses environment variables from a .env file in the current directory, returning them as a dictionary.

    File: /tf/active/vicechatdev/SPFCsync/validate_config.py | Lines: 58-77

    environment-variables configuration file-parsing dotenv settings
  • function validate_azure_client_secret

    Validates an Azure client secret by checking for placeholder values, minimum length requirements, and common invalid patterns.

    File: /tf/active/vicechatdev/SPFCsync/validate_config.py | Lines: 45-56

    validation azure authentication configuration security
  • function validate_azure_client_id

    Validates that an Azure client ID string conforms to the standard GUID format (8-4-4-4-12 hexadecimal pattern) and is not a placeholder value.

    File: /tf/active/vicechatdev/SPFCsync/validate_config.py | Lines: 33-43

    validation azure authentication guid uuid
  • function validate_sharepoint_url

    Validates that a given URL string conforms to SharePoint site URL format requirements, checking for proper protocol, domain, and path structure.

    File: /tf/active/vicechatdev/SPFCsync/validate_config.py | Lines: 13-31

    validation sharepoint url-validation microsoft configuration
  • function check_all_libraries

    Discovers and lists all document libraries in a SharePoint site using Microsoft Graph API, displaying their metadata and contents.

    File: /tf/active/vicechatdev/SPFCsync/check_libraries.py | Lines: 10-103

    sharepoint microsoft-graph document-libraries discovery audit
  • function test_upload_modalities

    Integration test function that validates FileCloud upload functionality by testing both new file creation and existing file update scenarios.

    File: /tf/active/vicechatdev/SPFCsync/test_upload_modalities.py | Lines: 37-228

    testing integration-test file-upload filecloud cloud-storage
  • function create_test_file

    Creates a temporary test file with specified content and filename in a temporary directory.

    File: /tf/active/vicechatdev/SPFCsync/test_upload_modalities.py | Lines: 27-35

    testing file-creation temporary-files test-utilities file-operations
  • class FileCloudClient

    A client class for interacting with FileCloud server API, providing authentication, file management, folder creation, and file upload capabilities.

    File: /tf/active/vicechatdev/SPFCsync/filecloud_client.py | Lines: 8-463

    filecloud file-management cloud-storage api-client file-upload
  • function access_main_site_library

    Authenticates with Microsoft Graph API and attempts to locate and access the main SharePoint site library using multiple discovery approaches, displaying detailed information about sites, drives, and folder structures.

    File: /tf/active/vicechatdev/SPFCsync/find_main_library.py | Lines: 9-164

    sharepoint microsoft-graph oauth2 authentication diagnostic
  • function watch_logs

    Monitors a log file in real-time and continuously prints new entries as they are appended to the file, similar to the Unix 'tail -f' command.

    File: /tf/active/vicechatdev/SPFCsync/monitor.py | Lines: 176-200

    logging monitoring file-watching real-time tail
  • function tail_logs

    Reads and displays the last N lines from a specified log file, with error handling for missing files and read failures.

    File: /tf/active/vicechatdev/SPFCsync/monitor.py | Lines: 157-174

    logging file-reading tail log-viewer debugging