PathAction was taking in a list or a string, but only treating it as a list. This resulted in it creating a Path object for every character in the provided string. My solution is to check if the given value is a string, and if it is, then PathAction wraps it in a list first.
The second issue PathAction had, is that it only ever returned a list. So FileIOMixin.save_file_import would throw an error because it expected a Path object. My solution is to unpack the list before calling save_file_import.
Fixing a bug caused by batch conversion feature.
PathAction was taking in a list or a string, but only treating it as a list. This resulted in it creating a Path object for every character in the provided string. My solution is to check if the given value is a string, and if it is, then PathAction wraps it in a list first.
The second issue PathAction had, is that it only ever returned a list. So FileIOMixin.save_file_import would throw an error because it expected a Path object. My solution is to unpack the list before calling save_file_import.