Indium phosphide (InP) nanowires (NWs) have attracted significant attention due to their exotic properties that are different from the bulk counterparts, and have been widely used for light generation, amplification, detection, modulation, and switching, etc. Here, high-quality InP NWs were directly