2

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.

Jakub Muda
  • 6,008
  • 10
  • 37
  • 56

2 Answers2

1

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

rahjoo
  • 31
  • 4
0

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.

Tom
  • 619
  • 6
  • 17