init
This commit is contained in:
@@ -1002,7 +1002,7 @@ if __name__ == "__main__":
|
||||
dayList = os.listdir(outPath)
|
||||
for dayDir in dayList:
|
||||
if dayDir[0] != '.' and dayDir < before_7_day.strftime("%Y%m%d"):
|
||||
if os.path.exists(os.path.join(outPath, dayDir)):
|
||||
if os.path.exists(os.path.join(outPath, dayDir)) and os.path.isdir(os.path.join(outPath, dayDir)):
|
||||
shutil.rmtree(os.path.join(outPath, dayDir))
|
||||
|
||||
outPath = os.path.join(outPath, day)
|
||||
|
||||
Reference in New Issue
Block a user