Module FileDropper :: Class FileDropper
[hide private]
[frames] | no frames]

Class FileDropper

source code

Builds an empty FileDropper object that may be used for uploading files to FileDropper.com, get details about files in a premium account, change their permission or delete them.

Instance Methods [hide private]
 
__init__(self) source code
 
__del__(self) source code
 
login(self, username, password)
Log into the premium account with the given username and password.
source code
 
logout(self)
Log out from a premium account.
source code
 
list(self)
Get a list of files in the file manager of a premium account.
source code
 
upload(self, filename)
Upload the specified file
source code
 
set_perm(self, file_id, perm, password=None)
Set new permissions for the specified file
source code
 
delete(self, file_id)
Delete the specified file
source code
Method Details [hide private]

list(self)

source code 

Get a list of files in the file manager of a premium account.

The return value is a list of 7-value tuples of the form (file_name, id, downloads, size, date, permissions, public_url)