Skip to content

Commit 152e898

Browse files
committed
Correct docs to reflect that upload_data would create only default bucket. (#373)
1 parent 229052a commit 152e898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sagemaker/session.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def upload_data(self, path, bucket=None, key_prefix='data'):
119119
Args:
120120
path (str): Path (absolute or relative) of local file or directory to upload.
121121
bucket (str): Name of the S3 Bucket to upload to (default: None). If not specified, the
122-
default bucket of the ``Session`` is used. If the bucket does not exist, the ``Session``
123-
creates the bucket.
122+
default bucket of the ``Session`` is used (if default bucket does not exist, the ``Session``
123+
creates it).
124124
key_prefix (str): Optional S3 object key name prefix (default: 'data'). S3 uses the prefix to
125125
create a directory structure for the bucket content that it display in the S3 console.
126126

0 commit comments

Comments
 (0)