FIX:(#1720) Incorrect appending of unicode path when running Scan on Windows OS

This commit is contained in:
evilhero 2017-09-20 17:32:54 -04:00
parent 2420a33dd6
commit edfdf98271
1 changed files with 1 additions and 1 deletions

View File

@ -3523,7 +3523,7 @@ class WebInterface(object):
#save the values so they stick. #save the values so they stick.
mylar.ADD_COMICS = autoadd mylar.ADD_COMICS = autoadd
if 'windows' in mylar.OS_DETECT.lower(): if 'windows' in mylar.OS_DETECT.lower() and '\\\\?\\' not in path:
#to handle long paths, let's append the '\\?\' to the path to allow for unicode windows api access #to handle long paths, let's append the '\\?\' to the path to allow for unicode windows api access
path = "\\\\?\\" + path path = "\\\\?\\" + path
mylar.COMIC_DIR = path mylar.COMIC_DIR = path