summaryrefslogtreecommitdiff
path: root/vendor/league/flysystem/src/Adapter/Ftp.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/league/flysystem/src/Adapter/Ftp.php')
-rw-r--r--vendor/league/flysystem/src/Adapter/Ftp.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/vendor/league/flysystem/src/Adapter/Ftp.php b/vendor/league/flysystem/src/Adapter/Ftp.php
index fd0660d2b4..a3ebaa75fd 100644
--- a/vendor/league/flysystem/src/Adapter/Ftp.php
+++ b/vendor/league/flysystem/src/Adapter/Ftp.php
@@ -380,13 +380,11 @@ class Ftp extends AbstractFtpAdapter
*/
public function getMetadata($path)
{
- $connection = $this->getConnection();
-
if ($path === '') {
return ['type' => 'dir', 'path' => ''];
}
- if (@ftp_chdir($connection, $path) === true) {
+ if (@ftp_chdir($this->getConnection(), $path) === true) {
$this->setConnectionRoot();
return ['type' => 'dir', 'path' => $path];