Skip to content

Commit

Permalink
Merge pull request #66 from daanbonke/master
Browse files Browse the repository at this point in the history
Fix for invalid file size because of multiple data streams.
  • Loading branch information
icewind1991 authored Jun 13, 2018
2 parents 0d31da4 + b2734e8 commit 2f3ff44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Wrapped/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ public function parseStat($output) {
$name = isset($words[0]) ? $words[0] : '';
$value = isset($words[1]) ? $words[1] : '';
$value = trim($value);
$data[$name] = $value;

if (!isset($data[$name])) {
$data[$name] = $value;
}
}
return [
'mtime' => strtotime($data['write_time']),
Expand Down

0 comments on commit 2f3ff44

Please sign in to comment.