From 37fa38a0db5c7e98a9f2cd1e352ee6e6503b0d31 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 4 Jan 2022 15:47:43 +0100 Subject: [PATCH 1/2] Update README.md --- src/PhpseclibV3/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpseclibV3/README.md b/src/PhpseclibV3/README.md index ebf03100b..add4669d9 100644 --- a/src/PhpseclibV3/README.md +++ b/src/PhpseclibV3/README.md @@ -4,4 +4,4 @@ composer require league/flysystem-sftp-v3 ``` -View the [documentation](https://flysystem.thephpleague.com/v2/docs/adapter/sftp-v3/). +View the [documentation](https://flysystem.thephpleague.com/v2/docs/adapter/sftp). 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 2/2] 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