@@ 701-707 (lines=7) @@ | ||
698 | if ($file->append) { |
|
699 | $file->stat(function ($file, $stat) use ($cb, $noncache, $fdCacheKey) { |
|
700 | $file->offset = $stat['size']; |
|
701 | if (!$noncache) { |
|
702 | $file->fdCacheKey = $fdCacheKey; |
|
703 | FileSystem::$fdCache->put($fdCacheKey, $file); |
|
704 | } else { |
|
705 | $cb($file); |
|
706 | } |
|
707 | }); |
|
708 | } else { |
|
709 | if (!$noncache) { |
|
710 | $file->fdCacheKey = $fdCacheKey; |
|
@@ 708-716 (lines=9) @@ | ||
705 | $cb($file); |
|
706 | } |
|
707 | }); |
|
708 | } else { |
|
709 | if (!$noncache) { |
|
710 | $file->fdCacheKey = $fdCacheKey; |
|
711 | FileSystem::$fdCache->put($fdCacheKey, $file); |
|
712 | } else { |
|
713 | $cb($file); |
|
714 | } |
|
715 | } |
|
716 | }, $path); |
|
717 | } |
|
718 | } |
|
719 |