When running "arv-get -n", it is OK if destination files already exist.
authorTom Clegg <tom@clinicalfuture.com>
Wed, 11 Dec 2013 00:06:22 +0000 (16:06 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 11 Dec 2013 00:06:22 +0000 (16:06 -0800)
refs #1646

sdk/python/bin/arv-get

index fdbd12f959eb91e61d75adae338597bbe02c6319..4154a3de5aa18f86ef3b5ffd787abdfdf6f87580 100755 (executable)
@@ -145,7 +145,7 @@ try:
                 dest_path = os.path.join(
                     args.destination,
                     os.path.join(s.name(), f.name())[len(get_prefix)+1:])
-                if (not (args.f or args.skip_existing) and
+                if (not (args.n or args.f or args.skip_existing) and
                     os.path.exists(dest_path)):
                     logger.error('Local file %s already exists' % dest_path)
                     sys.exit(1)