Question bastien bouko · Mar 27, 2017

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:

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.

Comments

Eduard Lebedyuk · Mar 27, 2017

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.

0
bastien bouko  Mar 28, 2017 to Eduard Lebedyuk

Thanks a lot, it's working !

0
Eduard Lebedyuk  Mar 28, 2017 to bastien bouko

Do not forget to mark answer as accepted.

0