Merge branch 'master' of ssh://gogs.mikeperalta.com:2222/mikeperalta/backup-rotator

This commit is contained in:
Mike 2019-12-28 12:00:20 -08:00
commit 7aaea3746f
3 changed files with 19 additions and 10 deletions

4
.gitignore vendored
View File

@ -3,4 +3,8 @@
# Ignore PyCharm # Ignore PyCharm
.idea .idea
#
__pycache__

View File

@ -246,13 +246,3 @@ class BackupRotator:
else: else:
self.log("Purging directory:", dir_path) self.log("Purging directory:", dir_path)
shutil.rmtree(dir_path) shutil.rmtree(dir_path)
def main():
rotator = BackupRotator()
rotator.run()
if __name__ == "__main__":
main()

15
main.py Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python3
from BackupRotator import BackupRotator
#
def main():
rotator = BackupRotator()
rotator.run()
if __name__ == "__main__":
main()