Installation
Clone the GitHub repository and build from source. The SDK uses Jackson for JSON parsing. Add JacksonCore/Databind/Annotations as dependencies to your project.
Quickstart
Connect to your storage zone
List files
BCDNObject objects.
BCDNObject properties:
getGUID()- Unique identifiergetObjectName()- File namegetPath()- Directory pathgetLength()- File size in bytesgetChecksum()- File checksumgetDateCreated()- Creation dategetLastChanged()- Last modification dategetIsDirectory()- Whether it’s a directorygetServerID()- Storage server IDgetUserID()- BunnyCDN user IDgetStorageZoneName()- Storage zone namegetStorageZoneID()- Storage zone IDgetReplicatedZones()- Replication regions
Upload a file
Upload a folder
Empty directories will not be uploaded.
Download a file
Delete files
Delete operations are irreversible and will succeed regardless of whether the
file exists.