Curl-ftp and default home directory

When I use any SFTP client to connect, the default home directory is listed by default, for example when I connect to s as testsftp on macOS SFTP client will open /Users/testsftp/ by default.

However, if I use cURL_FTP_GetDirList plugin command I will get the listing of computer root folder.

Is there some option I can add to object passed to cURL_FTP_GetDirList or is this achieved in some other way?

the code is minimal wrapper of libcurl, nothing fancy is done to imitate sophisticated ftp clients.

line #208, sends a ‘LIST’ request. that’s it.

Thanks Keisuke, just wanted to be sure I am not missing some option.