sftp get recursive structure

If you have a new question you’d like our support staff to post a response to, please visit our customer community, Data Security Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.helpsystems.com/sign_in.

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
2 posts Page 1 of 1


Posts: 11
Joined: Fri May 22, 2015 3:21 pm

Post by ernguyen » Wed Oct 05, 2016 6:32 am
Anyone have a work around suggestion to recursively (sftp) GET files and retain the folder structure at the local resource?


Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Wed Oct 26, 2016 8:28 am
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
2 posts Page 1 of 1