saving removes bad characters

This commit is contained in:
Dominik Demuth
2023-01-26 19:30:39 +01:00
parent af313c7a58
commit 0eb0a4be77
3 changed files with 17 additions and 9 deletions

View File

@ -1116,7 +1116,12 @@ class UpperManagement(QtCore.QObject):
else:
real_outnames.append(full_name)
outpath_set = path.with_name(real_outnames[-1]+path.suffix)
out_name = real_outnames[-1]
bad_character = r'/*<>\|:"'
for c in bad_character:
out_name = out_name.replace(c, '')
outpath_set = path.with_name(out_name+path.suffix)
data_i.save(outpath_set)