Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from CoolCoderCarl/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
CoolCoderCarl authored May 17, 2022
2 parents 83ec663 + e4dfbdc commit f406b2a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,34 @@
".ini",
".doc",
".docx",
".rtf",
".pdf",
".xlsx",
".xls",
".pptx",
".zip",
".7z",
".gz",
".bz",
".gzip",
".bzip",
".iso",
".mkv",
".mov",
".bmp",
".jpg",
".png",
".exe",
".msi",
".msu",
".rtf",
".pptx",
".conf",
".cfg",
".net",
".deny",
".allow",
]

archives_extension = [".zip", ".7z", ".gz", ".bz", ".gzip", ".bzip"]
archives_extension = [".zip", ".7z", ".gz", ".bz", ".gzip", ".bzip", ".iso"]

target_dir_name = "ALL"

Expand Down Expand Up @@ -82,9 +89,8 @@ def create_archive(dir_to_archive: str):
for a_ext in archives_extension:
if filename.endswith(a_ext):
pass
else:
zip_path = os.path.join(folder_name, filename)
zip_obj.write(zip_path, basename(zip_path))
zip_path = os.path.join(folder_name, filename)
zip_obj.write(zip_path, basename(zip_path))


parser = argparse.ArgumentParser(
Expand Down

0 comments on commit f406b2a

Please sign in to comment.