Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
d9f86aec
Commit
d9f86aec
authored
Jun 05, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix change_permission
parent
84e1c6e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
updater.py
cps/updater.py
+1
-1
No files found.
cps/updater.py
View file @
d9f86aec
...
@@ -185,7 +185,7 @@ class Updater(threading.Thread):
...
@@ -185,7 +185,7 @@ class Updater(threading.Thread):
def
moveallfiles
(
cls
,
root_src_dir
,
root_dst_dir
):
def
moveallfiles
(
cls
,
root_src_dir
,
root_dst_dir
):
new_permissions
=
os
.
stat
(
root_dst_dir
)
new_permissions
=
os
.
stat
(
root_dst_dir
)
log
.
debug
(
'Performing Update on OS-System:
%
s'
,
sys
.
platform
)
log
.
debug
(
'Performing Update on OS-System:
%
s'
,
sys
.
platform
)
change_permissions
=
(
sys
.
platform
==
"win32"
or
sys
.
platform
==
"darwin"
)
change_permissions
=
not
(
sys
.
platform
==
"win32"
or
sys
.
platform
==
"darwin"
)
for
src_dir
,
__
,
files
in
os
.
walk
(
root_src_dir
):
for
src_dir
,
__
,
files
in
os
.
walk
(
root_src_dir
):
dst_dir
=
src_dir
.
replace
(
root_src_dir
,
root_dst_dir
,
1
)
dst_dir
=
src_dir
.
replace
(
root_src_dir
,
root_dst_dir
,
1
)
if
not
os
.
path
.
exists
(
dst_dir
):
if
not
os
.
path
.
exists
(
dst_dir
):
...
...
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