Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
c3a37d0f
Commit
c3a37d0f
authored
Aug 25, 2010
by
Maude Le Jeune
Browse files
+ symlink
parent
753fb03a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pipelet/web.py
pipelet/web.py
+3
-1
No files found.
pipelet/web.py
View file @
c3a37d0f
...
...
@@ -203,7 +203,9 @@ class Web:
html
=
html_tmp
+
'<h1> Content of %s </h1> <div class="list"><ul>'
%
directory
for
filename
in
glob
(
os
.
path
.
join
(
directory
,
'*'
)):
absPath
=
os
.
path
.
abspath
(
filename
)
if
os
.
path
.
isdir
(
absPath
):
if
os
.
path
.
islink
(
absPath
):
html
+=
'<li><a href="pipedir?directory='
+
absPath
+
'">'
+
os
.
path
.
basename
(
filename
)
+
"("
+
os
.
path
.
realpath
(
filename
)
+
")"
+
"</a></li>"
elif
os
.
path
.
isdir
(
absPath
):
html
+=
'<li><a href="pipedir?directory='
+
absPath
+
'">'
+
os
.
path
.
basename
(
filename
)
+
"</a></li>"
else
:
html
+=
'<li><a href="download?filepath='
+
absPath
+
'">'
+
os
.
path
.
basename
(
filename
)
+
"</a> </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