Skip to content

Commit

Permalink
fix: do not give exec permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh authored Jun 19, 2024
1 parent fd30980 commit f0e13a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/projects/spades/pipeline/spades_pipeline/support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
а#!/usr/bin/env python3

############################################################################
# Copyright (c) 2023-2024 SPAdes team
Expand Down Expand Up @@ -927,16 +927,16 @@ def is_int(value):

def add_user_write_permission_recursive(path):
s = os.stat(path)
os.chmod(path, s.st_mode | stat.S_IRWXU)
os.chmod(path, s.st_mode | stat.S_IWUSR | stat.S_IRUSR)
for root, dirs, files in os.walk(path):
for d in dirs:
d = os.path.join(root, d)
s = os.stat(d)
os.chmod(d, s.st_mode | stat.S_IRWXU)
os.chmod(d, s.st_mode | stat.S_IWUSR | stat.S_IRUSR)
for f in files:
f = os.path.join(root, f)
s = os.stat(d)
os.chmod(f, s.st_mode | stat.S_IRWXU)
os.chmod(f, s.st_mode | stat.S_IWUSR | stat.S_IRUSR)


# shutil.copyfile does not copy any metadata (time and permission), so one
Expand Down

0 comments on commit f0e13a3

Please sign in to comment.