laptop and a wrench

Error

The performance of arcpy.ListFiles is slower than the core Python pathlib Listfile functions, especially over the Universal Naming Convention (UNC) network paths.

Última publicación: December 30, 2022 ArcGIS Pro
Número de ID del error BUG-000151714
EnviadoAugust 19, 2022
Última modificaciónOctober 7, 2024
Relacionado conArcGIS Pro
Versión encontrada3.0
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoKnown Limit

Información adicional

The performance continues to be a significant focus area. For this case, pathlib does direct calls to the filesystem, while arcpy.ListFiles goes through the various ArcGIS Pro data sources that support 'file' object. Pathlib is always dramatically faster and is a good option for iterating files in lieux of arcpy.ListFiles. In ArcGIS Pro 3.1 the performance of network file access (folders, files, etc.) is improved, and this issue is to be re-tested once the release is publicly available.

Pasos para reproducir

ID del error: BUG-000151714

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga