Commit 762c8c24 authored by Jerome Flesch's avatar Jerome Flesch

Backend: Handle correctly Windows network share path ("\\server\resource")

Signed-off-by: Jerome Flesch's avatarJerome Flesch <>
parent abddd0ba
Pipeline #99477 failed with stage
in 1931 minutes and 11 seconds
......@@ -247,7 +247,7 @@ class GioFileSystem(CommonFs):
def safe(self, uri):
logger.debug("safe: %s", uri)
if "://" in uri:
if uri[:2] == "\\\\" or "://" in uri:
logger.debug("safe: --> %s", uri)
return uri
if != "nt":
......@@ -263,7 +263,7 @@ class GioFileSystem(CommonFs):
def unsafe(self, uri):
logger.debug("unsafe: %s", uri)
if "://" not in uri:
if "://" not in uri and uri[:2] != "\\\\":
logger.debug("unsafe: --> %s", uri)
return uri
if not uri.startswith("file://"):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment