iface_slab.to('poscar', str(min_thick)+'_'+str(min_vac)+'/POSCAR') #Write file This line of code is not writing POSCAR with Pymatgen, instead throwing an error "ValueError: Invalid format: `*****/poscar`"