Closed eggplants closed 1 year ago
@eggplants
sanitize_filename
does already trim those characters when the platform is windows:
https://github.com/thombashi/pathvalidate/blob/a7467beff3589f00dad58dd38cb48992d63a5854/test/test_filename.py#L543-L545
Did you mean these trim were not working correctly?
I would like to trim heading and trailing Space
0x20
&& trailing Period0x2E
withsanitize_filename
if given platform isWindows
.https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/file-folder-name-whitespace-characters