From 50f714f6d50cf7a1ad407884bcd8147b022f737d Mon Sep 17 00:00:00 2001 From: MadMaxInfinity <77725769+MadMaxInfinity@users.noreply.github.com> Date: Sat, 6 Nov 2021 09:36:45 +0100 Subject: [PATCH] Update SftpAdapter.php There is no reason I can find that would explain why createDirectory would call makeDirectory with Config::OPTION_VISIBILITY over Config::OPTION_DIRECTORY_VISIBILITY as in ensureParentDirectoryExists... --- src/PhpseclibV2/SftpAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpseclibV2/SftpAdapter.php b/src/PhpseclibV2/SftpAdapter.php index 45b56fc66..a7b89ec67 100644 --- a/src/PhpseclibV2/SftpAdapter.php +++ b/src/PhpseclibV2/SftpAdapter.php @@ -187,7 +187,7 @@ public function deleteDirectory(string $path): void public function createDirectory(string $path, Config $config): void { - $this->makeDirectory($path, $config->get(Config::OPTION_VISIBILITY)); + $this->makeDirectory($path, $config->get(Config::OPTION_DIRECTORY_VISIBILITY)); } public function setVisibility(string $path, string $visibility): void