We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Generate List of Files in Folder

jrkmorgan
6 - Meteoroid

I need to create a workflow that will generate a list of files in a given filepath (ex. C:\\My Documents) that gives me the full file path, file name, extension, and size at minimum. I'd also like to be able to retrieve, if possible, original creator and last date modified.

 

I need to be able to change the file path as needed, and generate an output that can then be utilized in both statistics and metadata review/extrapolation for other projects.

 

I've played around with a few options, but haven't found the right combination. Any ideas?

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@jrkmorgan 
Have you tried the Directory tool?

2024-10-24 091935.png

jrkmorgan
6 - Meteoroid

Yes, but I'm struggling with how to get metadata, if I can, showing creator, last modified date, and extension. I need the file extension parsed from the full path and haven't hit upon the right combination of tools yet to achieve my end goal.

binuacs
21 - Polaris

@jrkmorgan use the FileGetExt() function to get the file extension

image.png

jrkmorgan
6 - Meteoroid

I finally have a great workflow going - next concern is how to output the error log as a tab in the excel output file - for all the files/folders that were not readable/convertable/etc. so that we can address them.

 

I've spent the last two hours searching and reading different threads on how to output an error log to excel with no luck. A few links were archived and I couldn't access the pages any longer. Others, I do not have the folders mentioned in my "program folders" file to access.

 

Ideas?

Labels
Top Solution Authors