cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
MathStatChem
Level VII

Only get files and not sub-directories with Files In Directory( )

Is there a simple way to use Files In Directory( ) to only get files and not sub-directories in a specified directory.  

I guess one approach would be to use the recursive(1) option, and then filter out from the list the strings that have a "/" in them, but seems there aught to be a simpler way.  

1 REPLY 1
jthi
Super User

Re: Only get files and not sub-directories with Files In Directory( )

If I remember correctly I have just gotten the list with Files In Directory and then used Filter Each to get the list of files. You could also use command line or multiple file import (Directory Tree: Explore Space Used by Folders )

-Jarmo

Recommended Articles