Skip to content
Snippets Groups Projects

Checking the file at the destination before downloading.

1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -96,6 +96,10 @@ class MWFileCopy extends FileProcessBase implements ContainerFactoryPluginInterf
}
[$source, $destination] = $value;
if (file_exists($destination)) {
return $destination;
}
// If the source path or URI represents a remote resource, delegate to the
// download plugin.
if (!$this->isLocalUri($source)) {
Loading