laptop and a wrench

Bogue

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

Dernière publication: December 30, 2022 ArcGIS Pro
Numéro d’ID de bogue BUG-000151714
EnvoiAugust 19, 2022
Dernière modificationOctober 7, 2024
S’applique àArcGIS Pro
Version trouvée3.0
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutKnown Limit

Informations supplémentaires

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.

Étapes pour reproduire

ID de bogue: BUG-000151714

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement