Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a07af2 commit 9c014c0Copy full SHA for 9c014c0
1 file changed
lib/core/common.py
@@ -853,18 +853,18 @@ def urlEncodeCookieValues(cookieStr):
853
854
def directoryPath(path):
855
retVal = None
856
- if path.find('/') != -1:
857
- retVal = posixpath.dirname(path)
858
- else:
+ if isWindowsPath(path):
859
retVal = ntpath.dirname(path)
+ else:
+ retVal = posixpath.dirname(path)
860
return retVal
861
862
def normalizePath(path):
863
864
865
- retVal = posixpath.normpath(path)
866
867
retVal = ntpath.normpath(path)
+ retVal = posixpath.normpath(path)
868
869
870
def safeStringFormat(formatStr, params):
0 commit comments