[ 
https://issues.apache.org/jira/browse/SSHD-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17446336#comment-17446336
 ] 

Thomas Wolf commented on SSHD-1227:
-----------------------------------

[~ssmali1505], that {{writeDirEntry()}} taking {{SftpClient.Attributes}} as 
input is used _only_ if you have chained SFTP file systems. If you want to 
provide custom "long name" info, you have to override 
{{AbstractSftpSubsystemHelper.getLongName(Path, String, Map<String, ?>)}}.

Note that I [changed|https://github.com/apache/mina-sshd/commit/06fe2dee8] just 
yesterday the hard-wired call to {{SftpHelper.getLongName()}} in that 
{{writeDirEntry()}} to go through an overrideable method, too.

> construct longname with own logic
> ---------------------------------
>
>                 Key: SSHD-1227
>                 URL: https://issues.apache.org/jira/browse/SSHD-1227
>             Project: MINA SSHD
>          Issue Type: Question
>            Reporter: Sandeep
>            Assignee: Lyor Goldstein
>            Priority: Major
>         Attachments: image-2021-11-18-16-36-06-584.png
>
>
> Hi Team,
> I wanted to construct long name by my own logic, I have data in the input 
> attributes map,
> is any way I can do this?  In short, I need to override  SFTPHelper class 
> getLongName method logic.
> !image-2021-11-18-16-36-06-584.png|width=692,height=301!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to