diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index a2700eda01..43b84060b8 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -486,13 +486,13 @@ class Filesystem { list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir); - // If no scheme or scheme is "file" create temp file in local filesystem - if (null === $scheme || 'file' === $scheme) { + // If no scheme or scheme is "file" or "gs" create temp file in local filesystem + if (null === $scheme || 'file' === $scheme || 'gs' === $scheme) { $tmpFile = tempnam($hierarchy, $prefix); // If tempnam failed or no scheme return the filename otherwise prepend the scheme if (false !== $tmpFile) { - if (null !== $scheme) { + if (null !== $scheme && 'gs' !== $scheme) { return $scheme.'://'.$tmpFile; }