Skip to main content
Question

How to copy file extension (.txt) in to other folder the same name

  • May 24, 2016
  • 1 reply
  • 20 views

hoa_le
Contributor
Forum|alt.badge.img+5

Hi everybody,

I have a question about copy file to another folder the same name.

I have 2 folder that have name Input and Output.

- In the folder Input, there are two sub-folder A,B.

In folder A have file names test_a.shp, test_a.txt ;

in folder B have file names test_b.shp, test_b.txt

- In the folder Output, there are two sub-folder A,B too but empty.

My target: - Copy test_a.txt file in folder A (Input) to folder A (output)

- Copy test_b.txt file in folder B (Input) to folder B (output)

Could you please tell me how to the solution to make that in FME?

Thank you,

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

todd_davis
Influencer
Forum|alt.badge.img+23
  • Influencer
  • May 25, 2016

Your reader needs to be "directory and filename pathnames" while writer is "File copy". Use the advanced browser in the reader to choose the folders you want to scan and go into parameter to reduce down any output (e.g. *.txt for just grabbing text files). The writer, would just need to be set accordingly for the output location.

If you have never used these reader and writers, they might take a bit of time getting your head around them, but just read the documentation.