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.
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.
- Support_Rick Offline
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
- Contact:
Re: Copy/Move files without directory structure
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
Re: Copy/Move files without directory structure
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 Offline
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
- Contact:
Re: Copy/Move files without directory structure
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
Re: Copy/Move files without directory structure
That worked perfectly. Thanks!