Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
-
jwawrzon
- Posts: 9
- Joined: Mon Jun 29, 2015 7:59 am
I am trying to set up a monitor that will copy any new files with a specific file name over to an archive directory. The monitor seems to work fine, but when it copies the newly created files to the archive, it also copies the entire directory structure as well. Is there a way to just copy the files over?
Eg:
C:\stuff\things\morethings\file.pdf
Copies over to
X:\Archive\stuff\things\morethings\file.pdf
i want it to be
X:\archive\file.pdf
Thanks.
-
Support_Rick
Support Specialist
- Posts: 592
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
jwawrzon,
On the COPY task under the "Advanced" tab, there's an option to "Flatten Destination Directory".
This should do what you're looking for.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
-
jwawrzon
- Posts: 9
- Joined: Mon Jun 29, 2015 7:59 am
Sorry I should have mentioned this is for an sftp session. I do not have a copy option unfortunately. In the manual it says there should be a flatten option with move as well but it is not there.
-
Support_Rick
Support Specialist
- Posts: 592
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
The only option you have is to create a WorkSpace. Do the SFTP | Get and bring the files back to your WorkSpace as a destination. Then, use the Copy Task destination filelist variable as the Source Variable for the Copy to Final Destination with the Advanced option to Flatten.
Delete the Workspace when done.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
-
jwawrzon
- Posts: 9
- Joined: Mon Jun 29, 2015 7:59 am
That worked perfectly. Thanks!