Skip to content

sftp get recursive structure

Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
  • ernguyen Offline
  • Posts: 11
  • Joined: Fri May 22, 2015 3:21 pm

sftp get recursive structure

Post by ernguyen »

Anyone have a work around suggestion to recursively (sftp) GET files and retain the folder structure at the local resource?
  • Support_Rick Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: sftp get recursive structure

Post by Support_Rick »

During the looping, while getting the file from the remote server, you can always take advantage of the Remote FileList variable attribute (path) which will contain the full path and name of the file on the REMOTE server. Use that to define the LOCAL path (in the Workspace maybe?) and write the file into the corresponding path locally. Then, you could read the workspace (recursively) and get a local fileList variable containing the same structure as the remote server.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Post Reply