Fixed potential crash at files without extension(s)

This commit is contained in:
Plato Mavropoulos 2022-10-31 17:04:50 +02:00
parent 65467da21c
commit 03ae0cf070

View file

@ -81,7 +81,7 @@ def path_stem(in_path):
# Get list of path file extensions
def path_suffixes(in_path):
return PurePath(in_path).suffixes
return PurePath(in_path).suffixes or ['']
# Check if path is absolute
def is_path_absolute(in_path):