title: Warning: filesize(): stat failed for..error
body: <p>i have this code:</p>
  
  <pre><code>$album_name = $row['album'];
      if(!file_exists("cdcovers/$album_name.jpg") &amp;&amp; filesize($album_name) &gt; 5){
  //gravar as imagens
  $imageString = file_get_contents(LastFMArtwork::getArtwork($row['artist'], $row['album'], true, "large"));
  $save = file_put_contents('/home/link/public_html/cdcovers/'.$row['album'].'.jpg',$imageString);
  }   
  </code></pre>
  
  <p>but i gives an error(Warning: filesize(): stat failed for...) if the image is not there,
  my ideia was if the file exists and is bigger then 5kb then do nothing if it is 4kb or below save image, even if a file exists with 0kb.</p>