Skip to content

Commit

Permalink
Add PurePosixPath for custom fs
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagosalvatore committed Oct 25, 2024
1 parent 94d0011 commit ce87ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ async def aload_data(
fs: Optional[AbstractFileSystem] = None,
) -> List[Document]:
"""Load data from the input path."""
if isinstance(file_path, (str, Path, bytes, BufferedIOBase)):
if isinstance(file_path, (str, PurePosixPath, Path, bytes, BufferedIOBase)):
return await self._aload_data(
file_path, extra_info=extra_info, fs=fs, verbose=self.verbose
)
Expand Down

0 comments on commit ce87ad8

Please sign in to comment.