Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Strand Lab
Strand Lab Cellxgene Gateway
Commits
876538cd
Commit
876538cd
authored
Sep 19, 2019
by
Alok Saldanha
Browse files
#5 fixed missing slash in path joining
parent
6656de62
Changes
1
Hide whitespace changes
Inline
Side-by-side
cellxgene_gateway/dir_util.py
View file @
876538cd
...
@@ -88,6 +88,7 @@ def render_entries(entries):
...
@@ -88,6 +88,7 @@ def render_entries(entries):
def
render_entry
(
entry
):
def
render_entry
(
entry
):
if
entry
[
"type"
]
==
"file"
:
if
entry
[
"type"
]
==
"file"
:
return
f
"<li> <a href='view
{
entry
[
'path'
]
}
'>
{
entry
[
'name'
]
}
</a></li>"
url
=
'view'
+
'/'
+
entry
[
'path'
].
lstrip
(
"/"
)
return
f
"<li> <a href='
{
url
}
'>
{
entry
[
'name'
]
}
</a></li>"
elif
entry
[
"type"
]
==
"directory"
:
elif
entry
[
"type"
]
==
"directory"
:
return
f
"<li>
{
entry
[
'name'
]
}{
render_entries
(
entry
[
'children'
])
}
</li>"
return
f
"<li>
{
entry
[
'name'
]
}{
render_entries
(
entry
[
'children'
])
}
</li>"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment