community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Designer Ideas

Share your Designer product ideas - we're listening!

Directory Tool Improvements - List Directories and Exclude Paths

Both of these can be partially accomplished with the output of the directory tool:

- List Directories - Summarize unique list of directories from the directory tool output

- Exclude Paths - use filter tool to exlude files or directories based on patterns

 

 However, here are some scenarios that aren't addressed cleanly:

- Directories are not listed unless there is a file contained within.  The tool is called Directory, but it only lists files.  The directory has to be non-empty to be listed.  An option is needed to either list files and/or directories (including empty optionally)

- I can't figure out whether the file specification is a wildcard expansion only or supports regular expression for inclusion/exclusion. I see in the File Browse tool that you can list multiple formats e.g. Text Files (*.txt)|*.txt|All Files (*.*)|*.*.  Here is a use case where this is required.  Our network shares have Windows file restore snapshots stored in a ~snapshot directory.  We don't want the directory tool to traverse this directory (because it literally takes hours to scan), but there isn't an elegant way to exclude it.  If you filter it from the directory tool output, it's already scanned it. What we've done is generate the top-level directory list outside of the tool and fed it into a macro that has a directory tool (with sub-directory scanning enabled) inside. 

- Another way to address this specific scenario woudl be to have an option to exclude traversal of "hidden" folders.  But a more generic approach is ideal.

1 Comment
Meteoroid

I've found a use case where we want to scan through thousands of directories and sub-directories and identify only the ones where the directory is empty. The tool is almost there but would need to remove that requirement on a file being present in the directory.