RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix handle move file failed (#16384)
Wang Qi638b59fbcdea
diff --git a/api/apps/services/file_api_service.py b/api/apps/services/file_api_service.pyindex cfde3de294..ef9ebd47c9 100644--- a/api/apps/services/file_api_service.py+++ b/api/apps/services/file_api_service.py@@ -568,12 +568,14 @@ async def move_files(uid: str, src_file_ids: list, dest_file_id: str = None, newwhile settings.STORAGE_IMPL.obj_exist(dest_folder_entry.id, new_location):new_location += "_"try:- settings.STORAGE_IMPL.move(+ moved = settings.STORAGE_IMPL.move(source_file_entry.parent_id, source_file_entry.location,dest_folder_entry.id, new_location,)except Exception as storage_err:raise RuntimeError(f"Move file failed at storage layer: {str(storage_err)}")+ if not moved:+ raise RuntimeError("Move file failed at storage layer")updates["parent_id"] = dest_folder_entry.idupdates["location"] = new_location