arv-get replaces spaces in get_prefix with \040 to match the manifest. Refs #1849
[arvados.git] / sdk / python / bin / arv-get
index 4154a3de5aa18f86ef3b5ffd787abdfdf6f87580..1025b8c6267bf607c6cc277ec787dd5050195503 100755 (executable)
@@ -130,6 +130,8 @@ if not get_prefix:
         logger.error(e)
         sys.exit(1)
 
+get_prefix = get_prefix.replace(' ', '\\040')
+
 reader = arvados.CollectionReader(collection)
 
 # Scan the collection. Make an array of (stream, file, local