PHP is_file and is_dir are not always reliable and may cause zip creation to crash for example. Need to create own check routine for this.