Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Recursively upload a directory structure to Rackspace's CloudFiles
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


This is a quick hack to upload a directory structure to Rackspace's Cloud Files. It preserves the appearance of a directory structure by including the directory name as part of the file name. For example, if you were to batch upload /tmp, the file /tmp/store/images/products/1.jpg would be uploaded to Cloud Files as store/images/products/1.jpg.


Clone both this repository and Rackspace's php-cloudfiles repository. Move cloudfiles-batch-upload.php into the php-cloudfiles directory (optionally change the require('./cloudfiles.php'); line in cloudfiles-batch-upload.php to point to the correct location). Edit the variables defined at the top of cloudfiles-batch-upload.php, then run the script.

Something went wrong with that request. Please try again.