Skip to content

Commit b4b5430

Browse files
committed
Zip up all the logs in the given directory
1 parent b2d1e65 commit b4b5430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

puttylogs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
files1=files+"."+strftime("%Y-%m-%d")+".zip" # Create the Variable files1, this is the files in the directory, then we add a suffix with the date and the zip extension
2323
os.chdir(logsdir) # Change directory to the logsdir
2424
os.system(zip_program + " " + files1 +" "+ files) # Zip the logs into dated zip files for each server. - 1.1
25-
shutil.move(files1, zipdir) # Move the zipped log files to the zipped_logs directort - 1.2
25+
shutil.move(files1, zipdir) # Move the zipped log files to the zipped_logs directory - 1.2
2626
os.remove(files) # Remove the original log files
2727

0 commit comments

Comments
 (0)