We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdabadc commit 4e7c501Copy full SHA for 4e7c501
1 file changed
pyarchivefile.py
@@ -856,7 +856,7 @@ def RemoveWindowsPath(dpath):
856
"""
857
if not dpath:
858
return ""
859
- if(re.findall("^(file):///", dpath)):
+ if(re.findall("^file:/{2,3}", dpath)):
860
dparsed = urlparse(dpath)
861
dpath = url2pathname(dparsed.path)
862
# Accept bytes and decode safely
@@ -874,7 +874,7 @@ def NormalizeRelativePath(inpath):
874
875
Ensures the path is relative unless it is absolute. Prepares consistent relative paths.
876
877
- if(re.findall("^(file):///", inpath)):
+ if(re.findall("^file:/{2,3}", inpath)):
878
dparsed = urlparse(inpath)
879
inpath = url2pathname(dparsed.path)
880
inpath = RemoveWindowsPath(inpath)
0 commit comments