cherry-studio/src/main/knowledge/preprocess
beyondkmp 5771d0c9e8
refactor: file path improve (#8990)
* refactor(FileManager): streamline file path handling in FilesPage and ImageBlock components

* refactor(file): implement getSafeFilePath utility for consistent file path handling across loaders and preprocessors

* refactor(FileStorage): replace getSafeFilePath with fileStorage.getFilePathById for consistent file path retrieval across services

* refactor(file): unify file path retrieval across loaders and preprocessors for improved consistency

* refactor(Inputbar, MessageEditor): replace getFileExtension with file.ext for improved file type handling

* refactor(FileStorage): simplify getFilePathById method by removing redundant checks for file path retrieval

* fix(FileStorage): update getFilePathById to ensure file.path is consistent with generated filePath

* refactor(FileStorage): simplify getFilePathById method by removing unnecessary file path consistency checks

* fix(FileStorage): update duplicate file check to use file.path for accurate detection

* fix(FileStorage): correct file path usage in uploadFile method for accurate duplicate detection

* fix(loader): update file path retrieval to use file.path for consistency across loaders
2025-08-11 16:35:46 +08:00
..
BasePreprocessProvider.ts refactor: remove mac ocr 2025-07-31 21:51:16 +08:00
DefaultPreprocessProvider.ts fix: rename knowledage -> knowledge 2025-07-21 18:11:27 +08:00
Doc2xPreprocessProvider.ts refactor: file path improve (#8990) 2025-08-11 16:35:46 +08:00
MineruPreprocessProvider.ts refactor: file path improve (#8990) 2025-08-11 16:35:46 +08:00
MistralPreprocessProvider.ts refactor: file path improve (#8990) 2025-08-11 16:35:46 +08:00
PreprocessProvider.ts fix: rename knowledage -> knowledge 2025-07-21 18:11:27 +08:00
PreprocessProviderFactory.ts fix: rename knowledage -> knowledge 2025-07-21 18:11:27 +08:00