pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes
FolderUploader Class Reference

Threading class to allow for uploading multiple files in the background. More...

List of all members.

Public Member Functions

def __init__
def folder_name_from_path
 Convenience method that first strips trailing path separators.
def upload_files_in_folder
 Handles the iteration across files within a folder.
def run
 Starts the uploading thread.

Public Attributes

 root_folder
 container
 ignore
 upload_key
 ttl
 client
 base_path

Detailed Description

Threading class to allow for uploading multiple files in the background.


Constructor & Destructor Documentation

def __init__ (   self,
  root_folder,
  container,
  ignore,
  upload_key,
  client,
  ttl = None 
)

Member Function Documentation

def folder_name_from_path (   self,
  pth 
)

Convenience method that first strips trailing path separators.

def run (   self)

Starts the uploading thread.

def upload_files_in_folder (   self,
  arg,
  dirname,
  fnames 
)

Handles the iteration across files within a folder.


Member Data Documentation

ttl

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties