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 #3 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 435883f + 617313d commit d92f458
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@

files_extension = [
".txt",
".ini",
".doc",
".docx",
".pdf",
".xlsx",
".xls",
".zip",
".iso",
".bmp",
".jpg",
".png",
".exe",
".msi",
".msu",
".rtf",
".pptx",
".conf",
Expand Down Expand Up @@ -45,7 +52,10 @@ def group_up_files(new_dir_name: str):
if file.endswith(ext):
file_path = os.path.join(args.dir, file)
print(file_path)
new_dir_path = args.dir + new_dir_name + ext.upper()
if args.dir == ".":
new_dir_path = new_dir_name + ext.upper()
else:
new_dir_path = args.dir + new_dir_name + ext.upper()
print(new_dir_path)
try:
os.mkdir(new_dir_path)
Expand Down

0 comments on commit d92f458

Please sign in to comment.