View source on GitHub |
The storage mechanism that stores blob data on a local disk.
Inherits From: BlobStorage
, expected_type
google.appengine.api.blobstore.file_blob_storage.FileBlobStorage(
storage_directory, app_id
)
Args | |
---|---|
storage_directory
|
Directory within which to store blobs. |
app_id
|
The application ID on whose behalf to store blobs. |
Methods
DeleteBlob
DeleteBlob(
blob_key
)
Deletes blob data.
Deleting an unknown blob will not raise an error.
Args | |
---|---|
blob_key
|
The blob key of an existing blob that you want to delete. |
OpenBlob
OpenBlob(
blob_key
)
Opens a blob file for streaming.
Args | |
---|---|
blob_key
|
The blob key of an existing blob that you want to open. |
Returns | |
---|---|
An open file stream to read the blob. |
StoreBlob
StoreBlob(
blob_key, blob_stream
)
Stores a blob stream .
Args | |
---|---|
blob_key
|
The blob key of the blob that you want to store. |
blob_stream
|
A stream or a stream-like object that will generate blob content. |