def runnerBypy(): bdoauth = pcs.bdpcs_open() yield bdoauth.loginBypy() yield bdoauth.getQuota() yield bdoauth. makeDir("/apps/bypy/123") yield bdoauth.uploadFile("1.jpg","/apps/bypy/123/",isOverWrite=True) yield bdoauth.uploadSuper("1.jpg","/apps/bypy/123/1.jpg",isOverWrite=True)
def runner_deviceLogin(): bdoauth = pcs.bdpcs_open() yield bdoauth.loginDevice("basic,netdisk") #waiting on grant raw_input() yield bdoauth.grantDevice() #yield bdoauth.getQuota() yield bdoauth.uploadSuper("1.jpg","/apps/tornado-pcs/1.jpg",isOverWrite=True)