sharepoint relative path fix
This commit is contained in:
parent
c873f96848
commit
c161a93796
1 changed files with 4 additions and 1 deletions
|
|
@ -1000,7 +1000,10 @@ def _registerCoreTools(registry: ToolRegistry, services):
|
|||
try:
|
||||
connectionId, service, basePath = await _resolveDataSource(dsId)
|
||||
if subPath:
|
||||
browsePath = subPath
|
||||
if subPath.startswith("/"):
|
||||
browsePath = subPath
|
||||
else:
|
||||
browsePath = f"{basePath.rstrip('/')}/{subPath}"
|
||||
else:
|
||||
browsePath = basePath
|
||||
from modules.connectors.connectorResolver import ConnectorResolver
|
||||
|
|
|
|||
Loading…
Reference in a new issue