Skip to main content

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,

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