mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix: Resolve cross-platform path splitting bug in search (#9732)
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
parent
d13e32bcec
commit
f62ed911d2
@ -73,9 +73,9 @@ class FileConversationStore(ConversationStore):
|
||||
metadata_dir = self.get_conversation_metadata_dir()
|
||||
try:
|
||||
conversation_ids = [
|
||||
path.split('/')[-2]
|
||||
Path(path).name
|
||||
for path in self.file_store.list(metadata_dir)
|
||||
if not path.startswith(f'{metadata_dir}/.')
|
||||
if not Path(path).name.startswith('.')
|
||||
]
|
||||
except FileNotFoundError:
|
||||
return ConversationMetadataResultSet([])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user