I don't see any useful info here and not many question in regards of the issue.
So here is my flow:
- Open secure FTP connection.
- List FTP directory (I have defined the exact folder, I want to read all the subfolders in this main folder. This is okay, no issue. I have named the instances as %DirectoryA%. %DirectoryA%'s address follows the directory I defined earlier, which is: /Main folder/Folder A/<whatever subfolder added in here>)
- Download folder(s) from FTP. For Folder(s) to download, I use %DirectoryA%. This works.
After step 3, I want to delete all subfolders in %DirectoryA% but I don't see a clear way to do this.
In the step Delete FTP directory, there are only 2 parameters needed, which is FTP connection and Directory to delete.
I need to be able to delete only the subfolders in Folder A which could be named anything. If i put in /Main folder/Folder A/%DirectoryA%, it will produce error as it would mean that the address is /Main folder/Folder A/Main folder/Folder A/DirectoryA and so on.
Is there a way I can convert %DirectoryA% to text, store it somewhere, and put is as Directory to delete?
Or am I complicating something that is actually simple?