Skip to content

ErrorException filesize(): stat failed #31

@anatoliy-t7

Description

@anatoliy-t7

Hello, I downloaded separate country end try to seed it.
And that's what i got.
My commands was:
php artisan geo:seed --chunk=3000 IN --append
and
php -d memory_limit=8000M artisan geo:seed --chunk=1000 IN --append

filesize(): stat failed for /Users/user/some-path-to-project/storage/geo/IN.txt
at vendor/igaster/laravel_cities/src/commands/seedGeoFile.php:108

    104| 
    105|     public function readFile(string $fileName, string $country = null)
    106|     {
    107|         $this->info("Reading File '$fileName'");
  > 108|         $filesize = filesize($fileName);
    109|         $handle = fopen($fileName, 'r');
    110|         $count = 0;
    111| 
    112|         $progressBar = new ProgressBar($this->output, 100);

How can I fix it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions