Getting Filepath in FTP adapter
Hi All,
i have a issue in getting the complete file path when using the FTP Adapter in service.
EnsLib.FTP.PassthroughService / EnsLib.FTP.InboundAdapter
I need to know the folder name (including sub folder) where the new file is found by the service when looking up for new files.
The normal file class is working good as expected
More details below,
In the below two examples you can notice folder name is fetched by normal File adapter, but in FTP only the file name is available.
FTP class gives the o/p as
<?xml version="1.0" ?>
<!-- type: Ens.StreamContainer id: 1028 -->
<StreamContainer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">
<OriginalFilename>12345.TIF</OriginalFilename>
<Stream>XYZ</Stream>
<Type>FB</Type>
</StreamContainer>
FILE class gives the o/p as
<?xml version="1.0" ?>
<!-- type: Ens.StreamContainer id: 1025 -->
<StreamContainer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">
<OriginalFilename>\\hostname\AAA\BBB\12345.TIF</OriginalFilename>
</StreamContainer>
Any help regarding this will be great. (I am new to intersystems)
Thanks in advance !
-
Arvind Balachandran