Skip to content

Commit

Permalink
Merge pull request #26 from grptx/master
Browse files Browse the repository at this point in the history
Update FtpUnixFileListConverter.php
  • Loading branch information
hguenot authored Sep 13, 2021
2 parents 31fb06f + 49ffa36 commit b379ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion converter/FtpUnixFileListConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private function parse_ftp_rawlist($line) {

$split = preg_split('[ ]', $line, 9, PREG_SPLIT_NO_EMPTY);
if ($split[0] != 'total') {
$output['isdir'] = ($split[0]{0} === 'd');
$output['isdir'] = ($split[0][0] === 'd');
$output['perms'] = $split[0];
$output['number'] = $split[1];
$output['owner'] = $split[2];
Expand Down

0 comments on commit b379ea0

Please sign in to comment.