Skip to main content
Question

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

  • June 16, 2020
  • 1 reply
  • 35 views

mackenziebudda
Participant
Forum|alt.badge.img+5

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!

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

mackenziebudda
Participant
Forum|alt.badge.img+5

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?