Skip to content

Commit e0b3654

Browse files
committed
Fixes bug caused by not using absolute numbers for string count.
1 parent 32daf4d commit e0b3654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private function authenticate()
334334
private function extractMetaDataFromTreeInfo(array $tree, $path, $recursive)
335335
{
336336
$matchPath = substr($path, 0, -1);
337-
$length = strlen($matchPath) - 1;
337+
$length = abs(strlen($matchPath) - 1);
338338

339339
$metadata = array_filter($tree, function ($entry) use ($matchPath, $recursive, $length) {
340340
$match = false;

0 commit comments

Comments
 (0)