Question

I want to saperate out jpg files from a folder into another folder querying based on character present in jpg file names. For example of any file has Character "A" then those files should be copied to my output folder.

  • 13 March 2018
  • 3 replies
  • 22 views

Badge

Details :

I tried to add Dataset & Pathname reader followed by StringSearcher, FeatureReader and writer as format JPEG.

I am getting desired output till feature reader , when i checked with logged but i am not getting files in output folder.


3 replies

Badge

attache4d is the WB created path2jpeg.fmw

Input files are mutiple files with extension .jpg

Userlevel 1
Badge +12

You can do all this with a Jpeg Reader.

Choose the Jpeg reader and under the "Dataset" select the drop down on the far right. Choose "select Multiple files/folders". Then add the relevant folder. In your case you are trying to find jpegs contain B, so the filter needs to be *B*.jpg.

Badge +5

I would keep using the "Directory and File Pathnames"-reader: This will get you a file listing of all *.jpg and you can use the 'path_rootname' attribute in a Tester to filter relevant files. Then use the "File Copy" writer to copy the images to the desired folder instead of reading all JPGs.

Reply