The currently proposed optimization algorithm for cooperative fault inspection of distribution network UAVs struggles to accurately detect fault points quickly, leading to low inspection efficiency. To address these issues, we investigate a new fault localization path optimization algorithm for distribution network UAVs based on a cloud-pipe-edge-end architecture. This architecture employs multiple drones for coordinated control, allowing for the simultaneous detection of suspected fault areas. Communication links facilitate interaction at both the drone and system levels, enabling the transmission of fault diagnosis information. Fault defects are identified, and the information is analyzed within an edge computing framework to achieve precise fault localization. Experimental results demonstrate that the proposed algorithm significantly enhances detection speed and accuracy, providing robust technical support for UAV operations.