1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-02 02:36:40 +08:00
This commit is contained in:
dylan
2023-08-29 08:59:36 +08:00
parent cadb76a4f7
commit b1d57e5269
2 changed files with 22 additions and 8 deletions
+21
View File
@@ -0,0 +1,21 @@
"""
15 10 * * * jd_desharelcode.py
new Env('删除旧的助力码目录');
"""
#!/usr/bin/env python3
# coding: utf-8
import os
def pullfix():
print('\n删除老的助力码日志\n')
print('\n开始执行。。。\n')
if os.path.isdir('/ql/log/.ShareCode'):
os.system('rm -rf /ql/log/.ShareCode')
elif os.path.isdir('/ql/data/log/.ShareCode'):
os.system('rm -rf /ql/data/log/.ShareCode')
else:
print('已删除')
return False
pullfix()