Usage
This tool is intended for use in ModelBuilder, not in Python scripting.
The tool has two outputs: Workspace and Name which could be used as inline variable %Name% in other tools.
Syntax
arcpy.mb.IterateWorkspaces(in_folder, {wildcard}, {workspace_type}, {recursive})
Parameter | Explanation | Data Type |
in_folder | Folder which stores the workspace to iterate. | Folder |
wildcard (Optional) | A 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 (for example, A* or Ari* or Land* and so on). | String |
workspace_type (Optional) | The workspace type to find, such as file geodatabase, folder, or enterprise geodatabase.
| String |
recursive (Optional) | Determines if subfolders in the main folder will be iterated through recursively.
| Boolean |
Derived Output
Name | Explanation | Data Type |
workspace | The full path to the workspace. | Workspace |
name | The name of the workspace. | String |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes