[FileSystem] Add support for Google App Engine.
This commit is contained in:
parent
6376ea2296
commit
06d86973cf
@ -486,13 +486,13 @@ class Filesystem
|
|||||||
{
|
{
|
||||||
list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir);
|
list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir);
|
||||||
|
|
||||||
// If no scheme or scheme is "file" create temp file in local filesystem
|
// If no scheme or scheme is "file" or "gs" create temp file in local filesystem
|
||||||
if (null === $scheme || 'file' === $scheme) {
|
if (null === $scheme || 'file' === $scheme || 'gs' === $scheme) {
|
||||||
$tmpFile = tempnam($hierarchy, $prefix);
|
$tmpFile = tempnam($hierarchy, $prefix);
|
||||||
|
|
||||||
// If tempnam failed or no scheme return the filename otherwise prepend the scheme
|
// If tempnam failed or no scheme return the filename otherwise prepend the scheme
|
||||||
if (false !== $tmpFile) {
|
if (false !== $tmpFile) {
|
||||||
if (null !== $scheme) {
|
if (null !== $scheme && 'gs' !== $scheme) {
|
||||||
return $scheme.'://'.$tmpFile;
|
return $scheme.'://'.$tmpFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user