mirror of
https://github.com/open-webui/openapi-servers.git
synced 2026-08-24 12:02:55 -04:00
[PR #23] [MERGED] fix & enh: fix json errors with filesystem library, add new file operation capabilities, better error handling #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/openapi-servers/pull/23
Author: @taylorwilsdon
Created: 4/6/2025
Status: ✅ Merged
Merged: 4/6/2025
Merged by: @tjbck
Base:
main← Head:enhance_filesystem📝 Commits (3)
d837001Fix fastapi response to make compatible with open-webui tools usec0bb335Add search_content, delete_path, move_path and get_metadata routes, return available directories on 403se4f5112Fix rest of json issues for all routes, implement SuccessResponse so that read calls are not attempted after move file operations📊 Changes
1 file changed (+273 additions, -41 deletions)
View changed files
📝
servers/filesystem/main.py(+273 -41)📄 Description
Summary
This PR enhances and stabilizes the Secure Filesystem API by implementing several important route improvements and error-handling enhancements.
Key Updates
New API Routes:
/search_content: Enables searching within file contents./delete_path: Supports file/directory deletion, requiring explicit confirmation and providing recursive deletion options./move_path: Allows safe moving or renaming of files/directories within permitted directories./get_metadata: Retrieves comprehensive metadata for specified files or directories.Improved Response Models:
SuccessResponsemodel.Security and Robustness:
403 Access Deniederrors.Code Quality Enhancements:
Testing & Validation
Breaking Changes
Related Issues
Bugfixes shown (json error):


Fixed:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.