Skip to content

Unable to remove from RecycleBin reflexively #6

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions