Skip to content

Commit

Permalink
Update SftpAdapter.php
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
MadMaxInfinity authored and frankdejonge committed Jan 15, 2022
1 parent 37fa38a commit 50f714f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpseclibV2/SftpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50f714f

Please sign in to comment.