src/Filesystem/Driver/DriverEio.php 1 location
|
@@ 191-199 (lines=9) @@
|
188 |
|
public function stat($path) |
189 |
|
{ |
190 |
|
return $this->invoker->call('eio_lstat', [ $this->getPath($path) ]) |
191 |
|
->then(function($info) { |
192 |
|
if ($info) |
193 |
|
{ |
194 |
|
$info['atime'] && $info['atime'] = new DateTimeImmutable('@' . $info['atime']); |
195 |
|
$info['mtime'] && $info['mtime'] = new DateTimeImmutable('@' . $info['mtime']); |
196 |
|
$info['ctime'] && $info['ctime'] = new DateTimeImmutable('@' . $info['ctime']); |
197 |
|
} |
198 |
|
return $info; |
199 |
|
}); |
200 |
|
} |
201 |
|
|
202 |
|
/** |
src/Filesystem/Driver/DriverStandard.php 1 location
|
@@ 177-185 (lines=9) @@
|
174 |
|
return !is_numeric($infoKey); |
175 |
|
}, ARRAY_FILTER_USE_KEY) : $info; |
176 |
|
}) |
177 |
|
->then(function($info) { |
178 |
|
if ($info) |
179 |
|
{ |
180 |
|
$info['atime'] && $info['atime'] = new DateTimeImmutable('@' . $info['atime']); |
181 |
|
$info['mtime'] && $info['mtime'] = new DateTimeImmutable('@' . $info['mtime']); |
182 |
|
$info['ctime'] && $info['ctime'] = new DateTimeImmutable('@' . $info['ctime']); |
183 |
|
} |
184 |
|
return $info; |
185 |
|
}); |
186 |
|
} |
187 |
|
|
188 |
|
/** |