List subfolders of an SFTP location in campaign javascript activity
Hi All,
I'm currently working on loading some data into Adobe Campaign Classic V7 which has been exported from a dataset in AEP. As AEP creates a new subfolder each time it exports an incremental file I'm finding it hard to automate the loading of these files in ACM due to not having a consistent location the files are placed.
The files exported from AEP Dataflow activity are placed directly on our Adobe Campaign SFTP. I would like to understand how I can find those files easily in campaign SFTP for loading.
I have Javascript already that lists the files present within a particular ACM SFTP Location, but would want to amend the code to list the folders present within that ACM location.
The code used to list files in a location is below. How can I amend this to list the sub-folders present in the provided location. I've tried various different codes and objects and each of them seem to not be available for use in ACM Javascript
---------------Code Start--------------------
---------------Code End---------------------