Skip to main content
Question

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

  • May 24, 2016
  • 1 reply
  • 5 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,

1 reply

todd_davis
Supporter
Forum|alt.badge.img+20
  • Supporter
  • 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.


Reply


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