The key points here are
and that changing the directory via a CD command doesn't alter the base directory for the fileset.
All that the 'base directory' parameter in file set appears to do is act as a mask to only provide a file list with entries from the matching folder BUT the file list still includes the 'base directory'.
The fileset function base directory appears to allways uses the SFTP
logon root as it's base directory, it doesn't appear to use the current directory on the SFTP
If my observations are correct than it may help future users if the documentation reflects that when using SFTP that the fileset base directory uses the SFTP login root directory as it's base and not the current directory.
Try creating a fileset on an SFTP server with a filestructure similar to below.
With a base directory or /root/folder1/
and create another file set with a base directory of /
I was expecting to see a difference in path in the filesets.
It depends upon your definition of 'base directory', I expected it to be equivalent to the current directory and for the path saved to exclude the base directory component in a fileset.
It is a semantic point now as we have moved forward since we raised the issue several weks ago.