Iterate Files (ModelBuilder)

License Level:BasicStandardAdvanced

Summary

Iterates over files in a folder.

Learn how Iterate Files works in ModelBuilder

Usage

Syntax

IterateFiles_mb (in_folder, {wildcard}, {extension}, {recursive})
ParameterExplanationData Type
in_folder

Folder in which the input files are located.

Folder
wildcard
(Optional)

Combination of * and characters that help to limit the results. The asterisk is the same as saying ALL. If no wildcard is specified, all inputs will be returned. For example, it can be used to restrict Iteration over input names starting with a certain character or word (e.g., A* or Ari* or Land*,and so on).

String
extension
(Optional)

The file extension, such as TXT, ZIP, and so on. Only files with the extension will be iterated. Do not use a period before the file extension.

String
recursive
(Optional)

Determines if all subfolders of the main folder will be recursively iterated through.

  • Checked—Will iterate through all subfolders.
  • Unchecked—Will not iterate through all subfolders.
Boolean

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
3/3/2014