Merge branch '17785-federated-token-regression' into main. Closes #17785
[arvados.git] / sdk / python / arvados / commands / put.py
index f6f85ba69619ba930cca9efd20d3b4f134f28527..be7cd629c98cfbac0ff36be2ce10c4de2c30cf2e 100644 (file)
@@ -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: