Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 2f3ff44

Browse files
authored
Merge pull request #66 from daanbonke/master
Fix for invalid file size because of multiple data streams.
2 parents 0d31da4 + b2734e8 commit 2f3ff44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Wrapped/Parser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ public function parseStat($output) {
135135
$name = isset($words[0]) ? $words[0] : '';
136136
$value = isset($words[1]) ? $words[1] : '';
137137
$value = trim($value);
138-
$data[$name] = $value;
138+
139+
if (!isset($data[$name])) {
140+
$data[$name] = $value;
141+
}
139142
}
140143
return [
141144
'mtime' => strtotime($data['write_time']),

0 commit comments

Comments
 (0)