updated File::allFiles method