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.

Last Published: December 30, 2022 ArcGIS Pro
Bug ID Number BUG-000151714
SubmittedAugust 19, 2022
Last ModifiedOctober 7, 2024
Applies toArcGIS Pro
Version found3.0
Operating SystemWindows OS
Operating System Version10.0
StatusKnown Limit

Additional Information

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.

Steps to Reproduce

Bug ID: BUG-000151714

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options