diff --git a/llama_parse/base.py b/llama_parse/base.py index c45f05e..4bdbf46 100644 --- a/llama_parse/base.py +++ b/llama_parse/base.py @@ -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 )