FileSysteBlobLoader: Expand user path (#10133)

Fix for: https://github.com/langchain-ai/langchain/issues/10019

Verified fix manually
This commit is contained in:
Eugene Yurtsev 2023-09-04 03:21:33 -04:00 committed by GitHub
parent 31bbe80758
commit e0f6ba08d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ class FileSystemBlobLoader(BlobLoader):
else:
raise TypeError(f"Expected str or Path, got {type(path)}")
self.path = _path
self.path = _path.expanduser() # Expand user to handle ~
self.glob = glob
self.suffixes = set(suffixes or [])
self.show_progress = show_progress