From 64ecf4191ee418182a6dbcce29c5a9844feaf559 Mon Sep 17 00:00:00 2001 From: CoolCoderCarl <123qwekir2wl@gmail.com> Date: Wed, 18 May 2022 00:12:41 +0300 Subject: [PATCH 1/3] Fix the . in dir name; add more extensions --- butler.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/butler.py b/butler.py index 0856ff9..92e0618 100644 --- a/butler.py +++ b/butler.py @@ -7,13 +7,20 @@ files_extension = [ ".txt", + ".ini", ".doc", ".docx", ".pdf", ".xlsx", + ".xls", ".zip", + ".iso", ".bmp", ".jpg", + ".png", + ".exe", + ".msi", + ".msu", ".rtf", ".pptx", ".conf", @@ -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) From cdeb7966be848beb431f073fcb2cd7d1feea8950 Mon Sep 17 00:00:00 2001 From: CoolCoderCarl <123qwekir2wl@gmail.com> Date: Wed, 18 May 2022 00:14:33 +0300 Subject: [PATCH 2/3] Fix black requirements --- butler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/butler.py b/butler.py index 92e0618..51931dd 100644 --- a/butler.py +++ b/butler.py @@ -52,7 +52,7 @@ def group_up_files(new_dir_name: str): if file.endswith(ext): file_path = os.path.join(args.dir, file) print(file_path) - if args.dir == '.': + if args.dir == ".": new_dir_path = new_dir_name + ext.upper() else: new_dir_path = args.dir + new_dir_name + ext.upper() From 617313d2bfdd2bbc15350c0e02b8c926ebaa74b1 Mon Sep 17 00:00:00 2001 From: CoolCoderCarl <123qwekir2wl@gmail.com> Date: Wed, 18 May 2022 00:15:22 +0300 Subject: [PATCH 3/3] Update CI names --- .github/workflows/build.yaml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c7e3ced..f3bedce 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: CI +name: Build on: pull_request: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eef5c9a..9896a9d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: CI +name: Release on: push: