From 9cf97ffcabe9bab158454c12a4dd27f5216cba9d Mon Sep 17 00:00:00 2001 From: tinect Date: Sat, 3 Feb 2024 23:01:53 +0100 Subject: [PATCH] fix: [FTP] ensure prefixer in method directoryExists --- src/Ftp/FtpAdapter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ftp/FtpAdapter.php b/src/Ftp/FtpAdapter.php index 079dd010a..7b298cb2a 100644 --- a/src/Ftp/FtpAdapter.php +++ b/src/Ftp/FtpAdapter.php @@ -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; } /**