def usable_path(self,newpath):
if self.allowed_path(newpath)==True:
if os.path.exists(newpath)==True:
try:
win32api.GetLongPathNameW(win32api.GetShortPathName(newpath))
return True
except:
return False
return False
文章目录