@@ 542-546 (lines=5) @@ | ||
539 | $doSave = true; |
|
540 | ||
541 | if ($rename || $copy) { |
|
542 | if ($copy) { |
|
543 | $copy = $this->renderFileRenamePattern(($target ?: $value), $copy); |
|
544 | $exists = $this->fileExists(static::normalizePath($basePath.$copy)); |
|
545 | $doCopy = ($copy && ($this['overwrite'] || !$exists)); |
|
546 | } |
|
547 | ||
548 | if ($rename) { |
|
549 | $value = $this->renderFileRenamePattern(($target ?: $value), $rename); |
|
@@ 548-552 (lines=5) @@ | ||
545 | $doCopy = ($copy && ($this['overwrite'] || !$exists)); |
|
546 | } |
|
547 | ||
548 | if ($rename) { |
|
549 | $value = $this->renderFileRenamePattern(($target ?: $value), $rename); |
|
550 | $exists = $this->fileExists(static::normalizePath($basePath.$value)); |
|
551 | $doRename = ($value && ($this['overwrite'] || !$exists)); |
|
552 | } |
|
553 | ||
554 | $doSave = ($doCopy || $doRename); |
|
555 | } |