if len(args.paths) == 0:
args.paths = ['-']
+ args.paths = map(lambda x: "-" if x == "/dev/stdin" else x, args.paths)
+
if len(args.paths) != 1 or os.path.isdir(args.paths[0]):
if args.filename:
arg_parser.error("""
replication=replication)
except (TypeError, ValueError,
arvados.errors.StaleWriterStateError) as error:
- return cls(cache, reporter, bytes_expected, num_retries=num_retries)
+ return cls(cache, reporter, bytes_expected,
+ num_retries=num_retries,
+ replication=replication)
else:
return writer