Skip to main content
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.


Forum|alt.badge.img

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

Forum|alt.badge.img
  • Author
  • March 13, 2018

attache4d is the WB created path2jpeg.fmw

Input files are mutiple files with extension .jpg


todd_davis
Influencer
Forum|alt.badge.img+22
  • Influencer
  • March 13, 2018

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.


ekkischeffler
Contributor
Forum|alt.badge.img+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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings