Update File.php

scandir return . and ..
so is_file return false at /cachedir/., when file_exists return true