Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f80768

Browse files
committed
Reverted
1 parent 7b070ac commit 0f80768

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

981981
def 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

989991
def 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)

0 commit comments

Comments
 (0)