Copy/Move files without directory structure
Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
5 posts
Page 1 of 1
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.
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 Specialist
- Posts: 590
- 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.
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
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
- Support Specialist
- Posts: 590
- 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.
Delete the Workspace when done.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
5 posts
Page 1 of 1