Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f3d09456
authored
Feb 01, 2013
by
Őry, Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store-server: toplist s/normpath/realpath/
parent
73369d3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
miscellaneous/store-server/TopList.py
+2
-2
No files found.
miscellaneous/store-server/TopList.py
View file @
f3d09456
...
...
@@ -12,7 +12,7 @@ mask = IN_CREATE | IN_MODIFY | IN_DONT_FOLLOW
Register given file to ~/../.top dir as a symbolic link.
"""
def
update_new
(
name
):
norm
=
os
.
path
.
norm
path
(
name
)
norm
=
os
.
path
.
real
path
(
name
)
if
norm
!=
name
:
return
# link
name
=
norm
...
...
@@ -24,7 +24,7 @@ def update_new(name):
if
not
name
.
startswith
(
home
):
return
# outside home
top_dir
=
os
.
path
.
norm
path
(
os
.
path
.
join
(
home
,
"../.top"
))
top_dir
=
os
.
path
.
real
path
(
os
.
path
.
join
(
home
,
"../.top"
))
try
:
os
.
mkdir
(
top_dir
)
except
OSError
:
...
...
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