Create Directory Chain FTP
Hello,
i'd like to create a directory chain with "EnsLib.FTP.OutboundAdapter"
i'm using it like that with the class file and it's working:
s file = ##class(%File).CreateDirectoryChain(directory)
But now i'd like to create a directory chain with the FTP Outbound but i don't know how , i didn't see a method to do that.
Thanks in advance.
Discussion (3)0
Comments
In your BO try:
Set result = ..Adapter.FTP.MakeDirectory(.path)
Adapter is EnsLib.FTP.OutboundAdapter and FTP is %Net.FtpSession.
I would subclass the adapter and add MakeDirectory method there, with code pointing to the FTP method and status conversion.
Thanks a lot, it's working !
Do not forget to mark answer as accepted.