![]() |
App Engine PHP SDK
v1 rev.445
The PHP runtime is available as an experimental Preview feature.
|
Public Member Functions | |
__construct ($bucket, $object, $context, $flags) | |
stat () | |
![]() | |
__construct ($bucket, $object=null, $context=null) | |
initialize () | |
dir_readdir () | |
dir_rewinddir () | |
close () | |
delete () | |
eof () | |
flush () | |
read ($count_bytes) | |
seek ($offset, $whence) | |
stat () | |
tell () | |
write ($data) | |
getMetaData () | |
getContentType () | |
Public Attributes | |
const | MAX_KEYS = 1000 |
![]() | |
const | METADATA_HEADER_PREFIX = 'x-goog-meta-' |
const | DEFAULT_READ_SIZE = 524288 |
const | DEFAULT_READ_CACHE_EXPIRY_SECONDS = 3600 |
const | DEFAULT_MAXIMUM_NUMBER_OF_RETRIES = 2 |
const | DEFAULT_WRITABLE_CACHE_EXPIRY_SECONDS = 600 |
const | READ_SCOPE = "https://www.googleapis.com/auth/devstorage.read_only" |
const | WRITE_SCOPE = "https://www.googleapis.com/auth/devstorage.read_write" |
const | FULL_SCOPE = "https://www.googleapis.com/auth/devstorage.full_control" |
const | OAUTH_TOKEN_FORMAT = "OAuth %s" |
const | PARTIAL_CONTENT_RANGE_FORMAT = "bytes %d-%d/*" |
const | FINAL_CONTENT_RANGE_FORMAT = "bytes %d-%d/%d" |
const | FINAL_CONTENT_RANGE_NO_DATA = "bytes */%d" |
const | DELIMITER = '/' |
const | FOLDER_SUFFIX = '_$folder$' |
const | WRITABLE_TEMP_FILENAME = "/_ah_is_writable_temp_file" |
const | S_IFREG = 0100000 |
const | S_IFDIR = 0040000 |
const | S_IRWXU = 00700 |
const | S_IRUSR = 00400 |
const | S_IWUSR = 00200 |
const | S_IXUSR = 00100 |
const | S_IRWXG = 00070 |
const | S_IRGRP = 00040 |
const | S_IWGRP = 00020 |
const | S_IXGRP = 00010 |
const | S_IRWXO = 00007 |
const | S_IROTH = 00004 |
const | S_IWOTH = 00002 |
const | S_IXOTH = 00001 |
const | CONTENT_RANGE_REGEX = "/bytes\s+(\d+)-(\d+)\/(\d+)/i" |
const | MEMCACHE_KEY_FORMAT = "_ah_gs_read_cache_%s_%s" |
const | WRITABLE_MEMCACHE_KEY_FORMAT = "_ah_gs_write_bucket_cache_%s" |
Additional Inherited Members | |
![]() | |
static | createObjectUrl ($bucket, $object=null) |
![]() | |
static | POST |
static | enable_optimistic_cache |
![]() | |
getOAuthTokenHeader ($scopes) | |
getRangeHeader ($start_byte, $end_byte) | |
makeHttpRequest ($url, $method, $headers, $body=null) | |
getHeaderValue ($header_name, $headers) | |
createStatArray ($stat_args) | |
tryParseCloudStorageErrorMessage ($gcs_result, &$code, &$message) | |
getErrorMessage ($http_status_code, $http_result, $msg_prefix="Cloud Storage Error:") | |
![]() | |
static | extractMetaData (array $headers) |
![]() | |
$bucket_name | |
$object_name | |
$context_options = [] | |
$url | |
$anonymous | |
![]() | |
static | $METADATA_HEADERS |
static | $retry_error_codes |
static | $retry_exception_codes |
static | $valid_acl_values |
static | $upload_start_header = ["x-goog-resumable" => "start"] |
Client for stating objects in Google Cloud Storage.
google\appengine\ext\cloud_storage_streams\CloudStorageUrlStatClient::stat | ( | ) |
The stat function uses GET requests to the bucket to try and determine if the object is a 'file' or a 'directory', by listing the contents of the bucket and then matching the results against the supplied object name.
If a file ends with "/ then Google Cloud Console will show it as a 'folder' in the UI tool, so we consider an object that ends in "/" as a directory as well. For backward compatibility, we also treat files with the "_$folder$" suffix as folders.