Skip to content

Commit c4b222e

Browse files
committed
Fix error when not selecting path
1 parent 26de724 commit c4b222e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folder_organizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def check_extension(file):
5959
last_path, extensions, exclude = get_data()
6060

6161
path = get_path(last_path)
62-
if path != tuple():
62+
if path != tuple() and path != '':
6363
for file in os.scandir(path):
6464
if file.is_file() and file.name not in exclude:
6565
type_ = check_extension(file)

0 commit comments

Comments
 (0)