Instantiate an anonymous file-based Bucket around a single key.
Deletes a key from the bucket.
Parameters: |
---|
This method returns the single key around which this anonymous Bucket was instantiated.
Return type: | SimpleResultSet |
---|---|
Returns: | The result from file system listing the keys requested |
Check to see if a particular key exists within the bucket. Returns: An instance of a Key object or None
Parameters: | |
---|---|
Return type: | |
Returns: | A Key object from this bucket. |
Creates a new key
Parameters: | key_name (string) – The name of the key to create |
---|---|
Return type: | boto.file.key.Key |
Returns: | An instance of the newly created key object |
ResultSet facade built from a simple list, rather than via XML parsing.
Closes fp associated with underlying file. Caller should call this method when done with this class, to avoid using up OS resources (e.g., when iterating over a large number of files).
Retrieve file data from the Key, and return contents as a string.
Parameters: | |
---|---|
Return type: | string |
Returns: | The contents of the file as a string |
Copy contents from the current file to the file pointed to by ‘fp’.
Parameters: |
---|
Retrieves a file from a Key
Parameters: | |
---|---|
Param: | ignored in this subclass. |
Store an object in a file using the name of the Key object as the key in file URI and the contents of the file pointed to by ‘fp’ as the contents.
Parameters: |
|
---|