File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ def getDirs(webApi=None):
310310 if absFilePath :
311311 directory = directoryPath (absFilePath )
312312 if isWindowsPath (directory ):
313- ntToPosixSlashes (directory )
313+ directory = ntToPosixSlashes (directory )
314314 if directory == '/' :
315315 continue
316316 directories .add (directory )
@@ -980,10 +980,12 @@ def urlEncodeCookieValues(cookieStr):
980980
981981def directoryPath (path ):
982982 retVal = None
983- if isWindowsDriveLetterPath (path ):
983+
984+ if isWindowsPath (path ):
984985 retVal = ntpath .dirname (path )
985986 else :
986987 retVal = posixpath .dirname (path )
988+
987989 return retVal
988990
989991def normalizePath (path ):
@@ -992,7 +994,8 @@ def normalizePath(path):
992994 and ntToPosixSlashes()
993995 """
994996 retVal = None
995- if isWindowsDriveLetterPath (path ):
997+
998+ if isWindowsPath (path ):
996999 retVal = ntpath .normpath (path )
9971000 else :
9981001 retVal = posixpath .normpath (path )
You can’t perform that action at this time.
0 commit comments