Spaces:
Sleeping
Sleeping
GPTfree api
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ app = Flask(__name__)
|
|
7 |
# 権限変更コマンドを実行する関数
|
8 |
def change_permissions(directory):
|
9 |
try:
|
10 |
-
#
|
11 |
-
subprocess.run(['
|
12 |
print(f"Permissions for {directory} changed to 775.")
|
13 |
except subprocess.CalledProcessError as e:
|
14 |
print(f"Error changing permissions for {directory}: {e}")
|
|
|
7 |
# 権限変更コマンドを実行する関数
|
8 |
def change_permissions(directory):
|
9 |
try:
|
10 |
+
# chmod 775コマンドを使って権限を変更
|
11 |
+
subprocess.run(['chmod', '775', directory], check=True)
|
12 |
print(f"Permissions for {directory} changed to 775.")
|
13 |
except subprocess.CalledProcessError as e:
|
14 |
print(f"Error changing permissions for {directory}: {e}")
|