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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
07e2b4c5
authored
Jan 30, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store: ignore changes in hidden files (including own stat)
parent
a70ef306
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
miscellaneous/store-server/TopList.py
+7
-3
No files found.
miscellaneous/store-server/TopList.py
View file @
07e2b4c5
...
@@ -8,6 +8,8 @@ wm = WatchManager()
...
@@ -8,6 +8,8 @@ wm = WatchManager()
mask
=
IN_CREATE
|
IN_MODIFY
|
IN_DONT_FOLLOW
mask
=
IN_CREATE
|
IN_MODIFY
|
IN_DONT_FOLLOW
def
update_new
(
name
):
def
update_new
(
name
):
if
os
.
path
.
normpath
(
name
)
.
find
(
"/."
)
!=
-
1
:
return
home
=
pwd
.
getpwuid
(
os
.
stat
(
name
)
.
st_uid
)
.
pw_dir
home
=
pwd
.
getpwuid
(
os
.
stat
(
name
)
.
st_uid
)
.
pw_dir
top_dir
=
os
.
path
.
join
(
home
,
"../.top"
)
top_dir
=
os
.
path
.
join
(
home
,
"../.top"
)
try
:
try
:
...
@@ -17,12 +19,14 @@ def update_new(name):
...
@@ -17,12 +19,14 @@ def update_new(name):
try
:
try
:
os
.
unlink
(
os
.
path
.
join
(
top_dir
,
str
(
COUNT
)))
os
.
unlink
(
os
.
path
.
join
(
top_dir
,
str
(
COUNT
)))
except
OSError
:
except
OSError
:
pass
print
"Failed to unlink "
+
str
(
COUNT
)
+
".
\n
"
print
e
for
i
in
range
(
1
,
COUNT
):
for
i
in
range
(
1
,
COUNT
):
try
:
try
:
os
.
rename
(
os
.
path
.
join
(
top_dir
,
str
(
i
+
1
)),
os
.
path
.
join
(
top_dir
,
str
(
i
)))
os
.
rename
(
os
.
path
.
join
(
top_dir
,
str
(
i
+
1
)),
os
.
path
.
join
(
top_dir
,
str
(
i
)))
except
OSError
:
except
OSError
as
e
:
pass
print
"Failed to rename "
+
str
(
i
+
1
)
+
" to "
+
str
(
i
)
+
" in "
+
top_dir
+
".
\n
"
print
e
os
.
symlink
(
name
,
os
.
path
.
join
(
top_dir
,
str
(
COUNT
)))
os
.
symlink
(
name
,
os
.
path
.
join
(
top_dir
,
str
(
COUNT
)))
class
Process
(
ProcessEvent
):
class
Process
(
ProcessEvent
):
...
...
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