-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This might be a bug due to Amazon's implementation.
NG case:
import pyacd
s=pyacd.Session.load_from_file("../../_acdsession")
pyacd.login(session=s)
root=pyacd.api.get_info_by_path("/")
f1=pyacd.api.create_by_id(root.object_id,"test", pyacd.types.FOLDER)
f2=pyacd.api.create_by_id(f2.object_id,"test", pyacd.types.FOLDER)
pyacd.api.recycle_bulk_by_id([ f1.object_id,])
pyacd.api.remove_bulk_by_id([ f1.object_id,])
PyAmazonCloudDriveError: PyAmazonCloudDriveError:
https://www.amazon.com/clouddrive/api/?... {'X-amzn-sessionid':
'190-9032996-xxxxxxx'} 400:Bad Request
Workaround:
use "pyacd.api.empty_recycle_bin()" instead of "pyacd.api.remove_bulk_by_id()"
Version:
pyacd v0.1.0 (8 Aug 2012)
Original issue reported on code.google.com by sakurai....@gmail.com on 8 Aug 2012 at 11:48
Reactions are currently unavailable