Skip to content

Commit

Permalink
fix: [FTP] ensure prefixer in method directoryExists
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Feb 3, 2024
1 parent 676d3b2 commit c8c42f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,10 @@ private function hasFtpConnection(): bool

public function directoryExists(string $path): bool
{
$location = $this->prefixer()->prefixPath($path);
$connection = $this->connection();

return @ftp_chdir($connection, $path) === true;
return @ftp_chdir($connection, $location) === true;
}

/**
Expand Down

0 comments on commit c8c42f2

Please sign in to comment.