From e4913f8f044f1bffb2be462222f8acaeb48960ac Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Mon, 6 May 2013 11:20:17 +0200 Subject: [PATCH] [Filesystem] Fix regression introduced in 10dea948 --- src/Symfony/Component/Filesystem/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index c3050423c1..c4af84620b 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -35,7 +35,7 @@ class Filesystem */ public function copy($originFile, $targetFile, $override = false) { - if (!is_file($originFile)) { + if (stream_is_local($originFile) && !is_file($originFile)) { throw new IOException(sprintf('Failed to copy %s because file not exists', $originFile)); }