Skip to content

Commit

Permalink
Merge pull request #22 from lazzard/fix-listDirDetails-method
Browse files Browse the repository at this point in the history
FtpClient::listDirDetails fixed (#21)
  • Loading branch information
AmraniCh authored Oct 1, 2021
2 parents 58478f6 + 3b9b390 commit 21863d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FtpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function listDirDetails(
// './path/to/file' is the same as 'path/to/file'
$directory = str_replace('./', '', $directory);

if (!($details = $this->wrapper->rawlist($directory, $recursive))) {
if (($details = $this->wrapper->rawlist($directory, $recursive)) === false) {
throw new FtpClientException($this->wrapper->getErrorMessage()
?: "Unable to get files list for [{$directory}] directory.");
}
Expand Down

0 comments on commit 21863d9

Please sign in to comment.