Skip to content

Commit 49d4bbe

Browse files
author
tugg
committed
do not add local path to file as url
1 parent 4d933cc commit 49d4bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend/prepdocslib/listfilestrategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def list(self) -> AsyncGenerator[File, None]:
111111
acls = {"oids": ["all"], "groups": ["all"]} if self.enable_global_documents else {}
112112
async for path in self.list_paths():
113113
if not self.check_md5(path):
114-
yield File(content=open(path, mode="rb"), acls=acls, url=path)
114+
yield File(content=open(path, mode="rb"), acls=acls)
115115

116116
def check_md5(self, path: str) -> bool:
117117
# if filename ends in .md5 skip

0 commit comments

Comments
 (0)