mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-05-02 02:36:40 +08:00
1
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
"""
|
|
||||||
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()
|
|
||||||
Reference in New Issue
Block a user