Skip to main content

Hi Everyone,

 

im new in FME and still learning a lot. I want to Sort some Files by their Filename.

For Example:

in Directory are few Files:

 

E006N52_ed2.zip

E025S23_ed4.zip

W312N34_ed1.zip

etc....

Now i want to Sort them by:

All E..... in one Way (Output on html as: All East Files)

All W.... in one Way (Output on html as: All West Files)

Hope u understand what i mean ;)

 

Greetings

You can use the FeatureWriter transformer with File Copy Format, the filecopy_dest_dataset set to a Conditional Value with Test Cluses set to filename Begins with E and W respectively and Expressions of the paths for each situation


Hi @zentalas​,

 

I'm not sure I got it right, but if you want to get an ordered dataset containing a filtered subset of the files in a directory (and subdirectory), you can use a Directory and File Pathnames Reader (check the attached screenshot for setup) followed by:

  • a Tester on the 'path_filename' attribute to get only the fatures (filenames) you want;
  • a Sorter on the same attirbute.

 

Hope that helps!


Reply