X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e99f026d040c6020dfcc51c6d988cf18d325a530..540b72d62a94015f116ba077e279a5f10d666778:/sdk/python/arvados/commands/put.py diff --git a/sdk/python/arvados/commands/put.py b/sdk/python/arvados/commands/put.py index f6f85ba696..0e732eafde 100644 --- a/sdk/python/arvados/commands/put.py +++ b/sdk/python/arvados/commands/put.py @@ -576,6 +576,9 @@ class ArvPutUploadJob(object): files.sort() for f in files: filepath = os.path.join(root, f) + if not os.path.isfile(filepath): + self.logger.warning("Skipping non-regular file '{}'".format(filepath)) + continue # Add its size to the total bytes count (if applicable) if self.follow_links or (not os.path.islink(filepath)): if self.bytes_expected is not None: @@ -1133,7 +1136,7 @@ def main(arguments=None, stdout=sys.stdout, stderr=sys.stderr, logging.getLogger('arvados').handlers[0].setFormatter(formatter) if api_client is None: - api_client = arvados.api('v1', request_id=request_id) + api_client = arvados.api('v1', request_id=request_id, num_retries=args.retries) if install_sig_handlers: arv_cmd.install_signal_handlers()