qlmaas.utils.upload_files

qlmaas.utils.upload_files(filenames: str | list)

Upload, to the server, the files given as argument.

Note

To upload a file, either put the path from your current working directory or give the absolute path.

from qlmaas.utils import upload_files

# Uploading only one file can be done using the str signature
upload_files("user/folder/file.py")

# for more file uploaded, use the list signature
upload_files(["user/folder/file.py", "/tmp/test2/test.txt"]

This function wraps upload_files() from the underlying QLMaaSConnection.

Parameters:

filenames (str | list[str]) – string or list of filepath to upload.