mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-03-16 16:24:36 +00:00
The legacy implementation was not handling UNC names properly: Traceback (most recent call last): File "check.py", line 6, in <module> send2trash(str(file)) File "\...\plat_win_legacy.py", line 79, in send2trash paths = [get_short_path_name(path) for path in paths] File "\...\plat_win_legacy.py", line 79, in <listcomp> paths = [get_short_path_name(path) for path in paths] File "\...\plat_win_legacy.py", line 62, in get_short_path_name raise WindowsError(err_no, FormatError(err_no), long_name[4:]) OSError: [Errno 123] La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte.: '\\\\SERVER\\folder\\file.txt'