We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6bcbf7 commit 88464c1Copy full SHA for 88464c1
gradient/commands/datasets.py
@@ -560,7 +560,6 @@ class PutDatasetFilesCommand(BaseDatasetFilesCommand):
560
@classmethod
561
def _put(cls, path, url, content_type):
562
size = os.path.getsize(path)
563
-
564
with requests.Session() as session:
565
headers = {'Content-Type': content_type}
566
@@ -632,7 +631,9 @@ def update_status():
632
631
path = path.replace(os.path.sep, '/')
633
634
key = target_path
635
- if not source_path_is_file:
+ if source_path_is_file:
+ key += source_name
636
+ else:
637
if not has_trailing_slash:
638
key += source_name + '/'
639
key += path[len(source_path)+1:]
0 commit comments