Free Form Command 'ls -l' returns different results for 'SFTP' and 'FTP'.

Document ID : KB000084747
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

When executing the Free Form Command 'ls -l' and defining 'FTP' in the connection object, the path of the file is returned in the report. 
But, if you use 'SFTP' in the connection object, only the file's name is returned in the report without the path. 

Examples:

FTP
2018-04-06 15:47:49             host name = FTP.Automic.com, remote user identification  = support
2018-04-06 15:47:49             connecting on port : 21
2018-04-06 15:47:49             Executing command: ls -l /12345/*tar.gz on CONN.FTPAGENT.FTP.AUTOMIC.COM.2
2018-04-06 15:47:49             -rw-r--r--   1 ??????@xxxxx.com domain users 2891018000 Apr  4 02:03 /12345/xxxxx-complete-node1.tar.gz
2018-04-06 15:47:49             -rw-r--r--   1 ??????@xxxxx.com domain users 3849015596 Apr  4 02:15 /12345/xxxxx-complete-node2.tar.gz


SFTP
2018-04-06 14:52:05             host name = FTP.Automic.com, remote user identification  = support
2018-04-06 14:52:05             connecting on port : 22
2018-04-06 14:52:06             sftp channel opened
2018-04-06 14:52:06             Executing command: ls -l /srv/ftp/account/12345/*tar.gz on CONN.FTPAGENT.FTP.AUTOMIC.COM.2
2018-04-06 14:52:06             -rw-r--r--    1 ??????@xxxxx.com domain users 222349680 Mar 28 00:27 xxxxx-node1-20180327-trace.tar.gz
2018-04-06 14:52:06             -rw-r--r--    1 ??????@xxxxx.com domain users 2891018000 Apr  4 04:03 xxxxx-complete-node1.tar.gz
2018-04-06 14:52:11             Disconnecting from FTP.Automic.com port 22


Expected Behavior:
Both types, FTP and SFTP should return the same results.
Cause:
Cause type:
By design
Root Cause: Returned results are determined by the FTP/SFTP server being used.
Resolution:
The result returned is determined by the FTP/SFTP server and not the RA FTP software.

Fix Status: No Fix

Additional Information:
Workaround :
N/A