Skip to content

Commit 8646bd5

Browse files
committed
Wrap base_dir in Path
1 parent fcb46e6 commit 8646bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphrag/graphrag/storage/file_pipeline_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def find(
5353
for file in all_files:
5454
match = file_pattern.search(f"{file}")
5555
if match:
56-
filename = f"{file}".replace(self._base_dir, "", 1)
56+
filename = f"{file}".replace(str(Path(self._base_dir)), "", 1)
5757
if filename.startswith(os.sep):
5858
filename = filename[1:]
5959
yield filename

0 commit comments

Comments
 (0)