Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets file size
<?php filesize(string $filename): int|false
<?php             return 1;

        }



        if (filesize($this->file) === 0) {

            file_put_contents($this->file, "{\n}\n");

        }
<?php         $accept = function ($response) use ($cache, $package, $fileName, &$urls) {

            $url = reset($urls);

            $cacheKey = $url['cacheKey'];

            FileDownloader::$downloadMetadata[$package->getName()] = @filesize($fileName) ?: $response->getHeader('Content-Length') ?: '?';



            if ($cache && !$cache->isReadOnly()) {

                $this->lastCacheWrites[$package->getName()] = $cacheKey;
<?php                         if (!$this->doTree($dir.'/'.$file, $array)) {

                            return false;

                        }

                    } elseif (is_file($dir.'/'.$file) && filesize($dir.'/'.$file)) {

                        $array[$dir][$file] = md5_file($dir.'/'.$file);

                    }

                }
<?php             return $this->directorySize($path);

        }



        return filesize($path);

    }
<?php     private function filesAreEqual($a, $b)

    {


        if (filesize($a) !== filesize($b)) {

            return false;

        }
<?php                 @chmod($targetFile, fileperms($targetFile) | (fileperms($originFile) & 0111));



                if ($bytesCopied !== $bytesOrigin = filesize($originFile)) {

                    throw new IOException(sprintf('Failed to copy the whole content of "%s" to "%s" (%g of %g bytes copied).', $originFile, $targetFile, $bytesCopied, $bytesOrigin), 0, null, $originFile);

                }

            }