18994: Fix for colon characters in filenames
[arvados.git] / sdk / cwl / arvados_cwl / pathmapper.py
index e0216aae52b352b2d970fbe7bf13bf14f8668423..d7b535eebdfd84fdc0b65123b53bd77fddb96d81 100644 (file)
@@ -166,7 +166,7 @@ class ArvPathMapper(PathMapper):
         else:
             suffix = loc[len(prefix):]
 
-        if prefix+suffix != prefix+urllib.parse.quote(srcobj["basename"], "/+@"):
+        if "basename" in srcobj and prefix+suffix != prefix+urllib.parse.quote(srcobj["basename"], "/+@"):
             return True
 
         if srcobj["class"] == "File" and loc not in self._pathmap: