We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f0ee4 commit 51393fcCopy full SHA for 51393fc
Filesystem.php
@@ -35,7 +35,7 @@ class Filesystem
35
*/
36
public function copy($originFile, $targetFile, $override = false)
37
{
38
- if (!is_file($originFile)) {
+ if (stream_is_local($originFile) && !is_file($originFile)) {
39
throw new IOException(sprintf('Failed to copy %s because file not exists', $originFile));
40
}
41
0 commit comments