Skip to content

Commit

Permalink
feat: [FTP] ensure prefixer in method directoryExists
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Dec 26, 2023
1 parent 220a948 commit 5ca08a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ftp/FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,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 5ca08a7

Please sign in to comment.