Skip to content

Commit be67da0

Browse files
zeryxlemonez
andauthored
good doc string
Co-authored-by: lemonez <[email protected]>
1 parent 0b0c398 commit be67da0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Algorithmia/datafile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ def putNumpy(self, array):
159159
raise DataApiError("Attempted to .putNumpy() a file without numpy available, please install numpy.")
160160

161161
def putAsZip(self, path):
162+
"""Zip file/directory and upload to data API location defined by `DataFile` object.
163+
164+
Accepts either a single file or a directory containing other files and directories.
165+
"""
162166
temp = tempfile.NamedTemporaryFile(delete=False).name
163167
if os.path.isdir(path):
164168
with zipfile.ZipFile(temp, 'w') as ziph:

0 commit comments

Comments
 (0)