18994: Fix suffix
[arvados.git] / sdk / cwl / arvados_cwl / pathmapper.py
index a5dd5ccf390c564c45643bc6e6550827fcaa1595..e0216aae52b352b2d970fbe7bf13bf14f8668423 100644 (file)
@@ -163,7 +163,8 @@ class ArvPathMapper(PathMapper):
                 suffix = urllib.parse.quote(urllib.parse.unquote(loc[i+1:]), "/+@")
             else:
                 prefix = loc+"/"
-                suffix = ""
+        else:
+            suffix = loc[len(prefix):]
 
         if prefix+suffix != prefix+urllib.parse.quote(srcobj["basename"], "/+@"):
             return True