From 6db66f4753b2e5eacf5bf5df82daad49d0b25c06 Mon Sep 17 00:00:00 2001 From: Doug Stevenson Date: Thu, 9 Jul 2015 13:29:40 -0700 Subject: [PATCH] chore(S3/StreamWrapper) Add comment about implicit functionality. --- src/S3/StreamWrapper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/S3/StreamWrapper.php b/src/S3/StreamWrapper.php index 241370e956..333956d073 100644 --- a/src/S3/StreamWrapper.php +++ b/src/S3/StreamWrapper.php @@ -515,6 +515,8 @@ private function formatKey($key) */ public function rename($path_from, $path_to) { + // PHP will not allow rename across wrapper types, so we can safely + // assume $path_from and $path_to have the same protocol $this->initProtocol($path_from); $partsFrom = $this->withPath($path_from); $partsTo = $this->withPath($path_to);