Fix issue with paths starting with \\?\

- Strip these characters off if present just like old implementation
This commit is contained in:
Andrew Senetar 2020-05-21 22:28:26 -05:00
parent 7abc048836
commit 629c2403e9
Signed by: arsenetar
GPG Key ID: C63300DCE48AB2F1
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ try:
]
# convert to full paths
path = [op.abspath(item) if not op.isabs(item) else item for item in path]
# remove the leading \\?\ if present
path = [item[4:] for item in path if item.startswith("\\\\?\\")]
# create instance of file operation object
fileop = pythoncom.CoCreateInstance(
shell.CLSID_FileOperation,