文件仅上载到根文件夹:
from pcloud import PyCloud
pc = PyCloud('username','password')
pc.uploadfile(files = ['pics\\img.png'])我找不到像“目的地”或“老大”这样的争论。
发布于 2021-05-05 16:20:55
你可以这样做:
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')发布于 2021-10-08 19:53:39
实际上,您可以使用pClooud API提供的所有方法。
两者都有
>>> pc.uploadfile(files=['/full/path/to/image1.jpg', '/Users/tom/another/image.png'],
path='/path-to-pcloud-dir')和
>>> pc.uploadfile(files=['/full/path/to/image1.jpg', '/Users/tom/another/image.png'],
folderid=0)是有可能的。
https://stackoverflow.com/questions/65464790
复制相似问题