Files only upload to the root folder:
from pcloud import PyCloud
pc = PyCloud('username','password')
pc.uploadfile(files = ['pics\\img.png'])
I couldn't find any arguments like destination or dest.
Files only upload to the root folder:
from pcloud import PyCloud
pc = PyCloud('username','password')
pc.uploadfile(files = ['pics\\img.png'])
I couldn't find any arguments like destination or dest.
you could do like the following:
from pcloud import PyCloud
pc = PyCloud('username','password')
pc.uploadfile(files=['/full/path/to/image1.jpg', '/Users/tom/another/image.png'],
path='/path-to-pcloud-dir')
Reference: pcloud - A Python API client for pCloud
Actually you can use all methods the pClooud API provides.
Both
>>> pc.uploadfile(files=['/full/path/to/image1.jpg', '/Users/tom/another/image.png'],
path='/path-to-pcloud-dir')
and
>>> pc.uploadfile(files=['/full/path/to/image1.jpg', '/Users/tom/another/image.png'],
folderid=0)
are possible.