Skip to content

Commit 246f1de

Browse files
committed
Remove trailing slash at the end
Now the path is now /f1/f2 instead of /f1/f2/
1 parent d744c50 commit 246f1de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dataikuapi/dss/projectfolder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def get_path(self):
3131
parent_id = definition.get("parent", None)
3232
if parent_id is not None:
3333
parent = DSSProjectFolder(self.client, parent_id)
34-
return parent.get_path() + definition.get("name", "") + "/"
34+
path = parent.get_path()
35+
return ("" if path == "/" else path) + "/" + definition.get("name", "")
3536
else:
3637
return "/"
3738

0 commit comments

Comments
 (0)