This commit is contained in:
midoks
2021-04-11 12:12:36 +08:00
parent 5676c8af0a
commit 0e6c65608f
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
## 文件保存相关 ##
# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置
dir=/Users/midoks/Downloads
dir=/tmp/aria2
# 设置日志等级
log-level=error
# 日志保存路径
+2
View File
@@ -66,7 +66,9 @@ def initDreplace():
mw.execShell('chmod +x ' + file_bin)
aria2_path = getServerDir() + '/aria2'
mw.execShell('mkdir -p /tmp/download')
if not os.path.exists(aria2_path):
mw.execShell('mkdir -p ' + aria2_path)
mw.execShell('touch ' + aria2_path + '/aria2.session')