Skip to main content
Question

Using filecopy to copy a file in a user parameter specified folder

  • June 16, 2020
  • 1 reply
  • 30 views

Forum|alt.badge.img

My current workspace has a prompt for the user to specify a folder that will be copied and uploaded to a few different places. One thing I would also like it to do is copy a .kml file inside this folder to another location. Every time the workspace will be run the user will be selecting a different folder but the .kml inside each folder will be going to the same spot as every other .kml.

 

Here is my current filecopy writer where $(job_folder) is the user specified folder. I try to set the source dataset as the user parameter but to only "filter" through any .kml's inside:

 

Is this possible?

 

Thanks!

1 reply

Forum|alt.badge.img

Just thought I would post an update that it was actually working and that I actually just specified the wrong destination folder....my bad

 

HOWEVER it's not renaming the file. In the filecopy documentation it says the filename can't be changed if the source dataset is a folder. Any suggestions for getting around this?


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