[Filesystem] Fix regression introduced in 10dea948

This commit is contained in:
Joseph Bielawski 2013-05-06 11:20:17 +02:00
parent 7deb923236
commit e4913f8f04

View File

@ -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));
}