laptop and a wrench

Bug

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

Zuletzt veröffentlicht: December 30, 2022 ArcGIS Pro
Bug-ID-Nummer BUG-000151714
EingereichtAugust 19, 2022
Zuletzt geändertOctober 7, 2024
Gilt fürArcGIS Pro
Gefunden in Version3.0
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusKnown Limit

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000151714

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln