INNER CODE UNIT · Python

user_path

pgalko/BambooAI · web_app/app.py:75

def user_path(root, *paths):
    """Helper to build a user-specific path using dynamic user ID."""
    user_id = get_user_id()
    return os.path.join(root, user_id, *paths)


def cleanup_threads(debug_mode=False):
    """Clean up threads for the current user - wrapper for backward compatibility"""
    user_id = get_user_id()
    cleanup_threads_for_user(user_id, debug_mode)

def clear_datasets_folder():
    """Clear datasets folder for the current user - wrapper for backward compatibility"""
    user_id = get_user_id()
    clear_datasets_folder_for_user(user_id)

# Load environment variables from .env file
load_dotenv()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…