args = parse_arguments(arguments, stdout, stderr)
if api_client is None:
api_client = arvados.api('v1')
args = parse_arguments(arguments, stdout, stderr)
if api_client is None:
api_client = arvados.api('v1')
else:
out_fd = os.open(args.destination, open_flags)
with os.fdopen(out_fd, 'wb') as out_file:
else:
out_fd = os.open(args.destination, open_flags)
with os.fdopen(out_fd, 'wb') as out_file:
except (IOError, OSError) as error:
logger.error("can't write to '{}': {}".format(args.destination, error))
return 1
except (IOError, OSError) as error:
logger.error("can't write to '{}': {}".format(args.destination, error))
return 1
def files_in_collection(c):
# Sort first by file type, then alphabetically by file path.
def files_in_collection(c):
# Sort first by file type, then alphabetically by file path.