Skip to main content
Question

How to move a file to a file share without needing a subfolder?

  • October 12, 2022
  • 7 replies
  • 193 views

Forum|alt.badge.img

When using the FeatureWriter, it wants me to provide a subfolder. I cannot leave it blank. I need to be able to write the file to the root of the file share. I am doing a move and not a copy.

 

any thoughts?

7 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • October 12, 2022

Try the File Copy Writer. Seems like that would be more applicable here.


Forum|alt.badge.img
  • Author
  • October 13, 2022

Thank you for your response. I switched it to FileCopyWriter, however it created a folder called PATH . You cannot leave the value blank as far as I can see (see attached). Is there a User Parameter I should be selecting?


Forum|alt.badge.img
  • Author
  • October 13, 2022

I am going to try the following settings:


Forum|alt.badge.img
  • Author
  • October 13, 2022

I need to set Feature Type Names as Subfolders to Yes, otherwise the files are NOT removed from the source. Yes, it is set as move and not a copy. Still copies the files to a subfolder in the root instead of just dropping the files in the root of the share.


keitho
Contributor
Forum|alt.badge.img+3
  • Contributor
  • October 14, 2025

I know this is an older post but I was successfully able to accomplish a top level copy/move of a file.

I added an AttributeManger just before my Writer and added the two following attributes.
 

 
Set Writer parameters as follows: 
       ** I want to Copy but the File Operation can be set to Move for a Move use case.

 
...and connected the attributes as shown here.
 



Result - No sub folder
 


Hope this helps others.

 


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • October 14, 2025

Try the File Copy Writer. Seems like that would be more applicable here.

Great ​@dustin 


crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • October 15, 2025

Good find ​@keitho ! Thanks for sharing. I’ve always been a little confused by this.