update
This commit is contained in:
parent
c2ce4e59a7
commit
b0a0fc5506
|
@ -1,2 +1,3 @@
|
|||
*/15 * * * * /usr/bin/bash /home/pi/lot_manager/bash/delete_than.sh
|
||||
# 定时任务
|
||||
*/15 * * * * /usr/bin/python /home/pi/lot_manager/delete_than20G.sh
|
||||
*/15 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh
|
||||
|
|
|
@ -18,7 +18,7 @@ while True:
|
|||
# 删除最旧的文件
|
||||
os.remove(os.path.join(folder_path, oldest_file))
|
||||
else:
|
||||
print("文件夹小于20G")
|
||||
# print("文件夹小于20G")
|
||||
break
|
||||
# 等待5秒钟
|
||||
time.sleep(5)
|
||||
|
|
Loading…
Reference in New Issue