[Filesystem] Fix regression introduced in 10dea948
This commit is contained in:
parent
7deb923236
commit
e4913f8f04
@ -35,7 +35,7 @@ class Filesystem
|
|||||||
*/
|
*/
|
||||||
public function copy($originFile, $targetFile, $override = false)
|
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));
|
throw new IOException(sprintf('Failed to copy %s because file not exists', $originFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user