Fixed bug, causing input_path normalization operation to damage Windows network drive paths. Basically, os.path.normpath(path_to_input_directory).strip(os.sep) replaced by os.path.normpath(path_to_input_directory).rstrip(os.sep)

This commit is contained in:
2024-10-07 16:16:12 +02:00
parent 89e9dd9ab1
commit c321a17943

View File

@ -131,7 +131,7 @@ def create_hdf5_file_from_filesystem_path(path_to_input_directory: str,
raise ValueError('path_to_input_directory needs to be specified using forward slashes "/".' )
#path_to_output_directory = os.path.join(path_to_input_directory,'..')
path_to_input_directory = os.path.normpath(path_to_input_directory).strip(os.sep)
path_to_input_directory = os.path.normpath(path_to_input_directory).rstrip(os.sep)
for i, keyword in enumerate(select_dir_keywords):